I would like to do a search query and filter out all results from www.foo.com. How do I do that?
This may help: (From this site: http://www.greghughes.net/rant/HowToExcludeADomainFromYourGoogleSearchResults.aspx)
"Note the "minus sign" that precedes the
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."