Robots.txt for AI Crawlers: What to Allow for Citations
6 min readBy The Resets Company

Robots.txt for AI Crawlers: What to Allow for Citations
If you want AI answer engines to cite your pages, do not block every AI user agent with one rule. OpenAI, Anthropic, Perplexity, and Google publish separate robots.txt tokens for model training and for search or retrieval. A brand can disallow training crawlers such as GPTBot and ClaudeBot while still allowing OAI-SearchBot, Claude-SearchBot, and PerplexityBot, which feed the search features that link to sources.
The AI crawler tokens that matter
Each vendor documents its own tokens. The list below summarizes what each one does, based on the vendors' current pages:
GPTBot (OpenAI): crawls content that may be used to train OpenAI's generative AI foundation models. Disallowing it signals that your content should not be used for training. (OpenAI crawler documentation)
OAI-SearchBot (OpenAI): surfaces websites in ChatGPT's search features. OpenAI states that sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though they can still appear as navigational links.
ChatGPT-User (OpenAI): may visit a page when a user asks ChatGPT or a custom GPT a question. OpenAI says robots.txt rules may not apply to these user-initiated visits and that this agent is not used to determine whether content may appear in search.
ClaudeBot (Anthropic): collects web content that could contribute to model training. Restricting it signals that future materials should be excluded from training datasets. (Anthropic help article)
Claude-SearchBot (Anthropic): indexes content to improve search results. Anthropic notes that disabling it prevents indexing for search optimization and may reduce visibility in user-directed web search.
Claude-User (Anthropic): may access sites when a person asks Claude a question. Anthropic says disabling it may reduce visibility for user-directed web search.
PerplexityBot (Perplexity): surfaces and links websites in Perplexity search results. Perplexity states it is not used to crawl content for AI foundation models. (Perplexity crawler documentation)
Perplexity-User (Perplexity): supports user actions inside Perplexity and is not used for web crawling or training.
Google-Extended (Google): a control token, with no separate crawler, that governs whether content Google crawls may be used to train future Gemini models and for grounding in Gemini Apps and Vertex AI. Google states it does not affect a site's inclusion in Google Search. (Google crawler documentation)
The pattern is consistent across vendors: training, search indexing, and user-triggered fetching are separate decisions.
A robots.txt that blocks training but keeps AI search
For a brand that wants citations in AI search answers but does not want its pages used for model training, a starting point looks like this:
# Allow AI search and retrieval crawlers
User-agent: OAI-SearchBot
Allow: /
User-agent: Claude-SearchBot
Allow: /
User-agent: PerplexityBot
Allow: /
# Opt out of model training
User-agent: GPTBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Google-Extended
Disallow: /
# Everyone else
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xmlAdjust the paths to your site. If you publish gated material, pricing drafts, or internal search results, disallow those paths for all agents instead of relying on a blanket allow.
The opposite policy is also valid. A publisher may choose to allow training crawlers if it wants its documentation reflected in model answers even without a live citation. That is a business choice. The point is to make it deliberately, token by token.
What robots.txt does not do
Robots.txt is a request, not a lock. RFC 9309, the standard that formalized the Robots Exclusion Protocol, says plainly that its rules are not a form of access authorization. Keep four limits in mind:
User-triggered fetchers follow different rules. OpenAI states robots.txt may not apply to ChatGPT-User visits, and Perplexity says Perplexity-User, because a person requested the fetch, ignores robots.txt rules in general.
Changes take time. OpenAI says search changes take about 24 hours to apply, and Perplexity says up to 24 hours.
Blocking a training token does not remove content already collected. It signals your preference for future crawling.
Anything private needs authentication, not a disallow rule.
Verify that the right bots can reach your pages
A correct robots.txt is only half the job. Firewalls and bot-protection rules can block search crawlers that your robots.txt invites. Check three things:
Server logs: search for the user-agent strings of OAI-SearchBot, Claude-SearchBot, and PerplexityBot, and confirm that requests return 200 rather than 403 or a challenge page.
Published IP ranges: OpenAI and Perplexity publish JSON files of crawler IP addresses on their documentation pages. Use them to tell real crawlers from spoofed user agents before allowlisting.
Rendered content: make sure the facts you want cited appear in the HTML response, not only after client-side JavaScript runs.
Pair this with the machine-readable basics covered in llms.txt and schema for a machine-readable site, so that crawlers that do arrive find clear, structured facts.
Measure the effect
After changing robots.txt, record a dated baseline and recheck it later. Track whether your pages appear as cited sources for a fixed set of questions in ChatGPT search, Claude, and Perplexity. A method for doing this is laid out in how to measure AI visibility through LLM citations and in the step-by-step AI visibility audit you can run yourself. Access is a precondition for citation, not a guarantee of it. Pages still need specific, verifiable claims worth quoting.
FAQ
Does blocking GPTBot remove my site from ChatGPT search?
No. OpenAI treats GPTBot and OAI-SearchBot as independent settings. Search visibility is controlled by OAI-SearchBot.
Does blocking Google-Extended affect Google Search rankings?
Google states that Google-Extended does not impact a site's inclusion in Google Search and is not used as a ranking signal in Google Search.
Should I block Perplexity-User or ChatGPT-User?
These agents fetch pages because a person asked a question. Blocking them can stop your page from being read for that answer. Decide based on whether you want to be quotable in live answers.
How long until robots.txt changes take effect?
OpenAI says about 24 hours for search, and Perplexity says up to 24 hours. Check each vendor's page for the others.
Get the technical layer right first
AI visibility work depends on infrastructure decisions that sit outside the content team: CDN rules, bot management, rendering, and sitemaps. If those systems are owned by different vendors or have drifted out of sync, teams that build systems for this kind of integration can help map them before any content changes. Start by confirming which crawlers can reach your evidence pages today.