Guides

robots.txt for AI crawlers: allow ChatGPT, Claude and Perplexity search, block training

Last updated: October 27, 2026. Crawler names and rules change; every claim below links to the vendor's own page so you can re-check it.

Short answer: each AI company uses separate user-agent tokens for search (finding pages to show and link in answers) and for training (collecting content for future models). In robots.txt you can allow the search tokens and block the training ones. The search tokens to allow are OAI-SearchBot (ChatGPT search), Claude-SearchBot (Claude) and PerplexityBot (Perplexity). The training tokens are GPTBot, ClaudeBot and Google-Extended. Blocking a training token does not, by the vendors' own descriptions, remove you from their search answers.

The tokens each vendor documents

TokenVendorWhat it does (vendor's description)If you block it
OAI-SearchBotOpenAISurfaces websites in ChatGPT's search features.OpenAI says opted-out sites won't be shown in ChatGPT search answers, though they can still appear as navigational links (OpenAI).
GPTBotOpenAICrawls content that may be used to train OpenAI's foundation models.Signals your content shouldn't be used for training. Set independently of OAI-SearchBot (OpenAI).
ChatGPT-UserOpenAIVisits a page when a ChatGPT user's request needs it; not automatic crawling.OpenAI says robots.txt rules may not apply because a user started the action, and that this token doesn't decide Search inclusion (OpenAI).
Claude-SearchBotAnthropicCrawls to improve the relevance and accuracy of Claude's search results.Anthropic says it prevents indexing your content for search optimization, which may reduce your visibility in user search results (Anthropic).
Claude-UserAnthropicFetches pages when a Claude user asks a question.Anthropic says it prevents retrieving your content for user queries and may reduce your visibility for user-directed web search (Anthropic).
ClaudeBotAnthropicCollects web content that could contribute to model training.Signals your future content should be excluded from training datasets (Anthropic).
PerplexityBotPerplexitySurfaces and links websites in Perplexity search results; Perplexity says it is not used to crawl content for AI foundation models.Perplexity recommends allowing it if you want to appear in its results (Perplexity).
Perplexity-UserPerplexityVisits a page in response to a user's question.Perplexity says this fetcher generally ignores robots.txt because a user requested it (Perplexity).
Google-ExtendedGoogleA control token, not a separate crawler. It governs whether content Google crawls may be used to train future Gemini models and for grounding in Gemini Apps and Vertex AI.Google says it does not affect inclusion in Google Search and is not a ranking signal (Google). Google's AI Overviews and AI Mode are Search features that draw on pages indexed for Search (Google).

We didn't find an xAI (Grok) page naming a dedicated crawler token, so there's nothing documented to add for Grok.

A robots.txt that allows AI search and opts out of training

This is an example, not a recommendation for every site. Whether to allow training is your call; the search tokens are the ones that matter for being found and linked in AI answers. Replace the paths and sitemap URL with your own.

# AI search and answer engines: allowed
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
Disallow: /admin/

# Model training: opted out
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /

# Everyone else
User-agent: *
Disallow: /admin/

Sitemap: https://www.example.com/sitemap.xml

Several User-agent lines in a row share the rules below them; that grouping is part of the standard (RFC 9309).

Mistakes that quietly block AI search

  1. Assuming the * group still applies to a named bot. Under the robots.txt standard, a crawler obeys the group that names it; it falls back to the * group only if no group matches (RFC 9309, section 2.2.1). So if you add a User-agent: OAI-SearchBot group, repeat any Disallow lines from * that you still want it to follow, as the example does with /admin/.
  2. Blocking “all AI bots” with one list. Lists copied from the web often mix search tokens with training tokens. Blocking OAI-SearchBot, Claude-SearchBot or PerplexityBot removes or reduces you in those engines' search answers, per the vendor pages above.
  3. Expecting robots.txt to work instantly. OpenAI says search changes can take about 24 hours to take effect, and Perplexity says up to 24 hours (OpenAI, Perplexity). The standard lets crawlers cache the file for up to 24 hours (RFC 9309, section 2.4).
  4. Treating robots.txt as access control. The standard says its rules “are not a form of access authorization”, and listing a path in robots.txt makes it public (RFC 9309). Google adds that robots.txt is not a way to keep a page out of Google; use noindex or a password for that (Google). User-initiated fetchers such as ChatGPT-User and Perplexity-User may not follow it at all.
  5. Forgetting the firewall. A CDN or bot-protection rule can block a crawler that robots.txt allows. OpenAI and Perplexity publish IP ranges for their bots so you can allow-list them (OpenAI, Perplexity).
  6. One file for several subdomains. robots.txt applies per host. Anthropic tells site owners to add the rule for every subdomain they want to opt out (Anthropic).

How to check your setup

  1. Open https://yourdomain.com/robots.txt in a browser and find every group that names one of the tokens above, plus the * group.
  2. For each search token, work out which group applies to it (its own group if one exists, otherwise *) and whether that group disallows the pages you want cited.
  3. In your server or CDN logs, look for requests whose user agent contains these tokens and check they get a normal 200 response, not a 403 or a challenge page.
  4. Then check whether you're actually cited, which robots.txt alone can't tell you. Our guide on how to check whether ChatGPT, Gemini and Perplexity cite your site walks through a free manual method.

Allowing the search crawlers makes it possible for those engines to fetch your pages. It does not guarantee you'll be cited; nobody can promise that.

Where CiteWatch fits

CiteWatch is a weekly tracker designed to ask ChatGPT, Gemini and Perplexity the questions your customers ask and show whether your site is mentioned or cited. It is in free early access and currently shows sample (demo) data only; nothing in the dashboard today is a real measurement of your site.

Try it on your own site

Enter your domain and one question a buyer would ask. It's free during early access and needs no card.

Run the free sample check