Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I want to be able to tell Google

if [some string] is in the URL, don't include as a search result

For example:

If I want to do a search for "popcorn", the first thing that comes up as a result is www.thepopcornfactory.com. How can I tell it

if 'popcorn' is in the URL, exclude that result

I checked the advanced search, couldn't find that option. Anyone know a search engine that allows this?

share|improve this question
add comment

migrated from superuser.com May 2 '11 at 5:42

This question came from our site for computer enthusiasts and power users.

2 Answers

It doesn't seem to be possible with Google. In the paragraph about the site operator, GoogleGuide says,

You can use many of the search operators in conjunction with the basic search operators +, –, OR, and " ".

but it doesn't seem to work for the inurl operator.

The following works for one specific site:

popcorn -site:thepopcornfactory.com

You could string together all the sites you don't want (which is how I use it), but that's hardly optimal and only works on the domain name, not the entire URL:

popcorn -site:thepopcornfactory.com -site:popcornhour.com -site:popcorn.org

As partial domain matching seems to be limited even for Google's Custom Search, I suspect that this might be a limitation of the way they keep or access their index. So above may be the only way, unless someone else knows more.

share|improve this answer
add comment

Google allows this if the [string] you're trying to exclude needs to be excluded only when it occupies a whole "word" of the URL. So for instance you can exclude thepopcornfactory.com sites with

-inurl:thepopcornfactory

but that won't exclude en.wikipedia.org/wiki/Popcorn or www.popcornopolis.com. Using:

-inurl:popcorn

similarly won't exclude thepopcornfactory.com or www.popcornopolis.com

share|improve this answer
    
mgkrebbs: over at Area 51, you signed up as a follower on the Genealogy Q&A proposal. bit.ly/U3vnDX We're now in Commitment Phase. It would really help the proposal get to Beta if you could "Commit". Sorry to add this comment here, but it was the only way I could see to contact you. –  lkessler Sep 29 '12 at 2:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.