How to Use site: to Search Only .gov and .edu Sites?
Using the site: operator in Google Search allows you to filter results so they only come from specific domains, such as government (.gov) or educational (.edu) institutions. By combining the site: operator with the OR operator, you can narrow your search to credible, authoritative sources in a single query.
Understanding the
site: Operator
The site: operator tells Google to return results only
from a specified domain, subdomain, or top-level domain (TLD). When you
include site:.gov or site:.edu in your search
bar, Google excludes all commercial, personal, and non-profit websites
(such as .com, .org, or .net)
from the results.
To search a single domain type, type your keywords followed by the operator:
climate change data site:.govmachine learning syllabus site:.edu
Combining .gov and
.edu with OR
If you want results from both government and educational institutions
at the same time, use the uppercase OR operator between two
site: commands. Google requires OR to be
capitalized so it is recognized as a logical operator rather than a
search word.
public health statistics site:.gov OR site:.edu
You can also group the operators in parentheses to keep complex queries organized, especially when adding multiple keywords:
"renewable energy" (site:.gov OR site:.edu)
Tips for Better Results
- No spaces after the colon: Always write
site:.govrather thansite: .gov. Adding a space breaks the operator. - Use quotes for exact phrases: Pair the
site:operator with quotation marks to find exact terms within those institutions, such as"student loan forgiveness" site:.gov. - Exclude specific subdomains: If a particular site
is cluttering your results, you can exclude it using a minus sign, such
as
site:.edu -site:harvard.edu.