Perplexity is a powerful search tool that pulls from the open web by default. This often includes news sites, blogs, forums, and commercial databases. For research, grant writing, or policy work, you may need results limited to official government domains such as .gov, .mil, or specific country-level TLDs. This article explains how to restrict Perplexity searches to government sources using custom instructions, domain filters, and source collections.
Key Takeaways: Restrict Perplexity to Government Domains
- Custom Instructions > Focus: Add a rule to limit search results to .gov, .mil, and .edu domains.
- Search query with site: operator: Use
site:.govin your query to filter results to a single domain type. - Source Collections (Pro feature): Create a saved collection of government URLs for repeated searches.
What the Government Source Filter Does
Perplexity uses a combination of web crawling and large language models to generate answers. By default, it indexes all publicly available content. This includes .com, .org, .edu, .gov, and many other top-level domains. When you need authoritative data from federal, state, or local agencies, you want only .gov domains or equivalent country-level TLDs like .gov.uk or .gouv.fr.
The feature described here is not a single toggle. Instead, you combine three methods: the site: operator in your query, the Focus setting in Perplexity, and the Pro-level Source Collections. Each method has different strengths. The site: operator is the most precise. Focus restricts the search engine used. Source Collections let you predefine a set of trusted URLs.
Before you start, ensure you have a Perplexity account. The Free plan supports the site: operator and Focus. The Pro plan ($20 per month) adds Source Collections and the ability to upload custom source lists.
Steps to Search Government Sources Only
- Use the site: Operator in Your Query
In the Perplexity search bar, type your query followed bysite:.gov. For example:national debt 2024 site:.gov. This tells Perplexity to return only pages from .gov domains. You can combine multiple site: operators with OR:site:.gov OR site:.mil. This method works on all plans and is the most reliable way to restrict results. - Change the Focus Setting to Web
Click the Focus dropdown above the search bar. Select Web. This ensures Perplexity uses its standard web index rather than Academic or Writing sources. The Web focus respects the site: operator. If you leave it on All or Academic, the filter may not apply correctly. - Add a Custom Instruction for Government Sources
Go to Settings > Custom Instructions. Add this text:Always limit search results to .gov and .mil domains unless the user specifies otherwise.Save the instruction. This does not enforce the filter for every query, but it tells the AI to prefer government domains when generating answers. For strict enforcement, still use the site: operator. - Create a Source Collection (Pro Only)
Open Collections > New Collection. Name it something like “U.S. Government Sources.” Add URLs such ashttps://www.usa.gov,https://www.census.gov, andhttps://www.nih.gov. Save the collection. When you start a new search, select this collection from the Sources dropdown. Perplexity will only search the URLs you added. This method is ideal for repeated searches on a specific set of government websites. - Combine Methods for Maximum Precision
For critical research, use all three methods together. Write a query likeinflation rate 2024 site:.gov, set Focus to Web, and select your Government Sources collection. This triple filter minimizes the chance of non-government results appearing.
Common Mistakes and Limitations
site:.gov Does Not Work With Some Search Engines
Perplexity may switch between different underlying search engines depending on the query. If you see results from .com or .org domains despite adding site:.gov, switch Focus to Web and retry. The Academic focus often uses a separate index that does not support the site: operator.
Government Domains Outside .gov Are Excluded
The site:.gov filter only catches U.S. federal, state, and local government domains. It does not include .gov.uk, .gov.au, .gouv.fr, or other country-level TLDs. For international government sources, use the specific TLD: site:.gov.uk for the United Kingdom or site:.gouv.fr for France. You can combine them with OR: site:.gov OR site:.gov.uk OR site:.gouv.fr.
Source Collections Require Manual Maintenance
Government websites change URLs, add new subdomains, or remove old pages. A Source Collection you create today may become outdated in a few months. Review your collection every 30 days. Remove broken links and add new official government portals.
Custom Instructions Are Not a Hard Filter
The Custom Instructions feature is a prompt for the AI, not a technical restriction. Perplexity may still show non-government sources if the AI determines they are more relevant. Always verify results after using custom instructions. For strict enforcement, rely on the site: operator and Source Collections.
Perplexity Free vs Pro: Government Source Filtering
| Item | Free Plan | Pro Plan ($20/month) |
|---|---|---|
| site: operator support | Yes | Yes |
| Focus setting (Web) | Yes | Yes |
| Custom instructions | Yes | Yes |
| Source Collections | No | Yes, up to 10 collections |
| Upload custom URL lists | No | Yes |
| Query limits per day | Limited (about 5 per 4 hours) | Unlimited |
You can search government sources on both plans. The Free plan works well for occasional use. The Pro plan is better for daily research with large collections of government URLs.
To get the most out of your filtered searches, combine the site: operator with Focus set to Web. This combination gives you reliable results on any plan. If you use Perplexity for professional research, consider the Pro plan for Source Collections and unlimited queries.