How Do You Block a Domain in Google Search Using -site:?

To block a specific domain from appearing in Google Search results, you combine a minus sign with the site: operator by typing -site: followed immediately by the domain name without any spaces. This tells Google to exclude all pages from that particular website from your search results.

Basic Syntax

Place the exclusion operator directly after your search terms, or anywhere in the query, making sure there is no space between the minus sign, site:, and the domain name:

your search query -site:example.com

For example, if you want to search for pasta recipes without seeing results from allrecipes.com, you would search:

pasta recipes -site:allrecipes.com

Important Rules to Follow

  • No spaces after the minus sign or colon: Writing - site:example.com or -site: example.com will break the operator and cause Google to treat the words as regular search terms.
  • Exclude subdomains: Using -site:example.com blocks the main domain as well as all of its subdomains (such as blog.example.com or shop.example.com).
  • Block only a specific subdomain: If you only want to hide a subdomain while keeping the rest of the site, include the full subdomain: query -site:blog.example.com.

Blocking Multiple Domains

You can exclude more than one website in the same search by chaining multiple -site: operators together, separated by spaces:

pasta recipes -site:allrecipes.com -site:foodnetwork.com

Blocking Top-Level Domains

You can also block entire top-level domains, such as country-specific or commercial extensions, by omitting the site name:

news -site:.uk

This filters out all results coming from .uk domains.