How Do You Exclude Subdomains in Google Search Using -site:?
You can exclude specific subdomains like support or community pages in Google Search by placing a minus sign directly before the site: operator, followed by the exact subdomain you want to omit. Combining a positive site: filter with one or more -site: exclusions lets you search a primary domain while filtering out noisy or irrelevant sections.
Basic Syntax for Excluding Subdomains
To exclude a subdomain, type -site: immediately followed
by the subdomain and domain name, with no space after the minus sign or
the colon.
For example, if you want to search example.com for
pricing information without seeing results from
support.example.com, enter:
pricing site:example.com -site:support.example.com
You can also use -site: without a positive
site: operator if you want to search the entire web while
excluding a specific subdomain:
"error 404" -site:support.example.com
Excluding Multiple Subdomains at Once
If a website has several subdomains you want to filter out—such as
support, community, and forum sections—you can chain multiple
-site: operators together in the same query. Separate each
operator with a space:
API documentation site:example.com -site:support.example.com -site:community.example.com
Google processes each -site: operator independently,
removing any indexed pages that match those subdomains from your search
results.
Common Mistakes to Avoid
- Adding a space after the minus sign: Typing
- site:support.example.comwill not work. The minus sign must touchsite:. - Adding a space after the colon: Typing
-site: support.example.combreaks the operator. - Including
https://or paths: Use only the hostname (such assupport.example.com) rather than full URLs. - Confusing subdomains with subfolders: The
-site:operator works on subdomains (likesupport.example.com) and can also exclude subfolders (like-site:example.com/support/), so make sure you match the actual URL structure of the site.