Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Assume there is a website with the domain name baz.tld. It has content. There is also content on subdomains foo.baz.tld and bar.baz.tld, but there is no www.baz.tld subdomain.

The most frequent search operator I use on Google is site: to limit the scope to a particular domain. This works fine when specifying a particular subdomain such as site:foo.baz.tld (which limits search result to that subdomain). But when I give site:baz.tld I end up getting results for foo.baz.tld and bar.baz.tld but the ones for baz.tld end up somewhere towards the end (several pages forward) of the search results.

How can I achieve something like site:foo.baz.tld but limit it to only baz.tld?

share|improve this question

migrated from superuser.com Mar 11 '13 at 14:34

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

up vote 3 down vote accepted

I think the closest you can come is to restrict your search to the domain you want, then subtract out the subdomains you don't. For example, compare the results of these two queries:

visual studio site:microsoft.com

visual studio site:microsoft.com -site:msdn.microsoft.com

Google doesn't support wildcarding in site: keyword as in -site:*.microsoft.com, so you'll have to subtract each subdomain you'd like excluded one-at-a-time.

share|improve this answer
Thanks @NicoleHamilton. This is of course not practical, but it just means this is a limitation of the service. Hoping for other answers in the future, for now I'll accept. +1 as well. – 0xC0000022L Mar 15 '13 at 0:05

Your Answer


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.