Google Search – How to Restrict Site Operator by Excluding Subdomains

google-search

Let's say I ran the following query in Google's web search:

site:"superuser.com" "windows 7"

This will return results on the blog.superuser.com subdomain.

How can I restrict results to only be from the superuser.com domain and not any other subdomain?

Best Answer

This will do the trick:

[ "windows 7" site:superuser.com -site:*.superuser.com ]

This method has varying results and does not work for sites such as

  • stackexchange.com
  • cnn.com
  • fox.com
  • internet.com