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 verificationsearches only thesupport.google.comsubdomain. - Subdirectory:
site:developer.mozilla.org/en-US/docs/Web/JavaScript arraylimits 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.comsearches the main site while excluding its blog subdomain. - File types: Combine
site:withfiletype:to find specific documents, such assite:nasa.gov filetype:pdf mars.
Common Mistakes to Avoid
- Adding a space after the colon: Typing
site: example.comwith a space will not filter the results to that domain. - Including
http://orhttps://: You do not need to include the protocol. Stick to the domain name, such assite:nytimes.com.