How do you use the site: operator in Google Search?

The site: operator in Google Search lets you restrict your search results to a specific website, subdomain, or top-level domain. By typing site: followed immediately by a web address and your search terms, you can quickly find pages on a particular site without relying on its built-in search bar.

Basic Syntax

To search within a single website, enter site: followed by the domain name, a space, and then your keywords. Do not put a space between site: and the domain name.

site:example.com privacy policy

This query returns only pages from example.com that match the terms "privacy" and "policy".

Searching Subdomains and Specific Paths

You can narrow your search further by including a subdomain or a specific folder path after site:.

  • Subdomain: site:support.google.com two-step verification searches only the support.google.com subdomain.
  • Subdirectory: site:developer.mozilla.org/en-US/docs/Web/JavaScript array limits results to the JavaScript documentation section.

Searching Top-Level Domains

If you want to search across all websites that share a specific top-level domain (TLD), such as .edu, .gov, or .org, omit the website name and provide only the extension.

site:.gov climate data

This is useful when you are looking for official government reports, academic research, or non-profit resources.

Combining with Other Search Operators

The site: operator works well alongside other Google Search operators to refine your results:

  • Exact phrases: Use quotation marks to find an exact match on a site, such as site:wikipedia.org "quantum computing".
  • Excluding words or subdomains: Use a minus sign (-) to exclude specific terms or sections. For example, site:example.com -site:blog.example.com searches the main site while excluding its blog subdomain.
  • File types: Combine site: with filetype: to find specific documents, such as site:nasa.gov filetype:pdf mars.

Common Mistakes to Avoid

  • Adding a space after the colon: Typing site: example.com with a space will not filter the results to that domain.
  • Including http:// or https://: You do not need to include the protocol. Stick to the domain name, such as site:nytimes.com.