I would like to do a search query and filter out all results from www.foo.com. How do I do that?
4 Answers
This may help: (From this site: https://web.archive.org/web/20141223223234/http://www.greghughes.net/rant/HowToExcludeADomainFromYourGoogleSearchResults.aspx)
"Note the "minus sign" that precedes the site:
search operator in this case. That's how we tell Google to exclude the site/domain specified.
So there you have it. Want to exclude a domain from your search term? Just specify the domain with "-site:" and you're all set.
But what if you don't want to specify the domain to exclude every time by hand? In that case, set up a Google Custom Search Engine (http://www.google.com/coop/cse/) and specify during setup that you want your custom search engine to include results from the entire Internet. Then, after your search engine has been created, go to the Control Panel, choose the "Sites" tab, and from there you can specify as many domains as you like to exclude from every search. You'll get a custom search engine that you can tweak to your heart's content."
-
Latest addition, you can block domains now from your search, see: google.com/reviews/t– pritaeasAug 15, 2012 at 14:13
-
1Domain block is not defunct as part of Google. I have resorted back to -site: as above, but I use a text expander to open up my whole list of domains I'd rather not see. I answered a similar questions here: webapps.stackexchange.com/questions/30198/…– EFHMay 30, 2014 at 18:45
-
2Looks like this site is down. A full example should be edited in to improve the quality of the answer per SO's new guidelines. Jul 8, 2019 at 21:30
-
1Please don’t use a link as an answer. This answer does not actually say how to omit a domain. Sep 28, 2021 at 0:43
You can exclude a domain by combining operators, so if you want to search for example
but not see stuff from example.com, you can input example -site:example.com
.
1. Choice
Firefox addon Hide Unwanted Results of Google Search — is my choice.
2. Limits
You need to use Firefox.
If you want to use Chrome, possibly, you can help this and this answers.
3. Environment
Addon successful works for me in:
- Windows 10 Enterprise LTSB 64-bit EN,
- Firefox 54.0.1 (64-bit).
4. Demonstration
SERP without filters:
For example, I want to exclude YouTube and IMDb. Right-click to link of YouTube and IMDb in SERP → select Add This site to Hide Results
→ results hide:
You can see and manage excluded domains. about:addons
→ find Hide Unwanted Results of Google Search
→ Options
→ Settings…
:
You can temporarily turn on excluded sites, if you unchecked mark.
5. Features
- You can forever hide results from unexpected site(s). If you use
-site:
, operator from @Su answer, you need wrote-site:
operator each time, as you want exclude site. It may take a lot of time. - Multiple sites excluding support,
- Regular expressions supports for excluding parts of domains.
In addition to Xavierjazz' excellent answer, you can use the inurl
search parameter to exclude URLs with a particular word in it:
-inurl:foo.com
This becomes handy, if you do not want to exclude the whole domain, but only certain paths:
-inurl:foo.com/path/to/uninteresting/content
In contrast to the site
search parameter, inurl
can be applied to multiple domains, while still using one keyword:
-inurl:uninteresting
will exclude www.foo.com/uninteresting
and www.bar.com/uninteresting
for example.