All posts
Generative search5 min read

Training bots and answer bots: what your robots.txt actually controls

GPTBot, OAI-SearchBot and ChatGPT-User do different jobs, as do ClaudeBot, Claude-User and Claude-SearchBot. Here is what each user agent is for, which lines in robots.txt affect it, and how to check your own file.

DataForGAIO

Most robots.txt files written in 2023 have one AI rule: User-agent: GPTBot followed by Disallow: /. The AI operators have since split their crawling into separate jobs, each with its own user agent. One line no longer says what most site owners think it says.

The useful distinction is between training and answering. A training crawler collects pages that may be used to build future models. An answer crawler fetches pages so an AI product can cite or summarize them in a response, either from a search index or live on a user's request. Blocking the first keeps your content out of training sets. Blocking the second can take your pages out of the answers people now read in place of a results page.

This post maps the main user agents to those jobs. Operators update their documentation, so treat this as a map and confirm details against each operator's current crawler page before changing production rules.

The three jobs

JobWhat it doesExample tokens
TrainingCollects pages that may be used to train modelsGPTBot, ClaudeBot, CCBot, Meta-ExternalAgent, Bytespider
Search indexingBuilds the index an AI search product retrieves fromOAI-SearchBot, Claude-SearchBot, PerplexityBot
User-initiated fetchFetches a page because a user asked about it in a conversationChatGPT-User, Claude-User, Perplexity-User

There's also a fourth kind of entry that isn't a crawler at all: the control token. Google-Extended and Applebot-Extended never appear in your access logs. They're names you write in robots.txt to tell Google or Apple how content their existing crawlers already fetch may be used.

OpenAI

  • GPTBot crawls for content that may be used to train OpenAI's models. Disallowing it is the training opt-out.
  • OAI-SearchBot crawls for ChatGPT's search features. If it's disallowed, your pages are less likely to be shown and linked in ChatGPT search answers.
  • ChatGPT-User fetches a page when a person using ChatGPT asks for it, for example by pasting a link. It isn't used to decide what gets crawled automatically. OpenAI documents that robots.txt rules may not apply to it in the same way, because each fetch is initiated by a user.

A site that wants to be cited in ChatGPT search but stay out of training data would disallow GPTBot and allow OAI-SearchBot. Writing one rule for all three gets one of those two outcomes wrong.

Anthropic

  • ClaudeBot collects public web content that may be used to train Anthropic's models.
  • Claude-SearchBot crawls to improve the quality of search results that Claude can draw on.
  • Claude-User fetches pages when a Claude user asks a question that needs them.

Older robots.txt files often name anthropic-ai or Claude-Web. Those are earlier tokens. Keep them if you like, but a rule that names only them doesn't address ClaudeBot.

Perplexity

  • PerplexityBot indexes pages for Perplexity's search results. Perplexity states that it isn't used to crawl content for training foundation models.
  • Perplexity-User fetches pages to answer a specific user's question. Perplexity says it generally ignores robots.txt for these user-initiated fetches.

Google and Apple control tokens

Google-Extended controls whether content Google crawls may be used to train and ground Gemini models. Google says it doesn't affect a site's inclusion or ranking in Google Search. AI Overviews are part of Search, so a Google-Extended rule doesn't remove a page from them. Only Googlebot rules affect Search, and those affect everything else in Search too.

Applebot-Extended works the same way for Apple. Applebot keeps crawling for Siri and Spotlight. The -Extended token tells Apple whether that content may be used to train its foundation models.

Other training crawlers you'll see

  • CCBot is Common Crawl's crawler. Its open archive is a common input to many training datasets, so this one line can matter more than any single company's bot.
  • Meta-ExternalAgent collects content for Meta's AI training.
  • Bytespider is ByteDance's crawler.
  • Amazonbot and cohere-ai belong to Amazon and Cohere.

Common mistakes

A wildcard block with a few exceptions. User-agent: * with Disallow: / blocks every crawler that isn't named elsewhere. That includes new answer bots you haven't heard of yet. If you want to be cited, name the bots you block instead.

Assuming the most specific group stacks. Under RFC 9309, a crawler obeys only the group that names it, and falls back to * only if no group does. Rules from * don't add to a named group. If GPTBot has its own group with Disallow: /private/, the * group's Disallow: /drafts/ doesn't apply to it.

Rule order. The most specific (longest) matching path wins, not the first line. Allow: /docs/public/ beats Disallow: /docs/ for /docs/public/intro whatever order they appear in.

A robots.txt that's really an HTML page. Some servers answer /robots.txt with a 200 and the site's catch-all HTML page. Crawlers treat that as no robots.txt, which means no restrictions.

A 5xx on robots.txt. RFC 9309 says an unreachable robots.txt means crawlers should assume everything is disallowed. A flaky origin can quietly take you out of every AI index.

A starting template

This is for a site that wants to be cited by AI search and stay out of training sets. Adjust it to your own policy.

# Training crawlers
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
User-agent: Meta-ExternalAgent
User-agent: Bytespider
User-agent: Google-Extended
User-agent: Applebot-Extended
Disallow: /
 
# Search and answer crawlers
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
 
User-agent: *
Allow: /

robots.txt is a request, not an access control. It records your policy in a form well-behaved crawlers read. If you also want to state a reservation in other machine-readable ways, see our post on llms.txt, ai.txt, TDMRep and noai.

How to check your own file

In the DataForGAIO dashboard, Robots & AI use fetches your robots.txt, parses it under RFC 9309, and shows which AI agents may fetch a given path. Crawler view goes further for a single page: it shows how each AI and search bot is answered by your server, and lists fixes in plain language.

Every crawl receipt also records the result for 14 AI tokens in ai_use_details.robots_txt. They are GPTBot, ClaudeBot, Google-Extended, CCBot, PerplexityBot, Applebot-Extended, anthropic-ai, Claude-Web, OAI-SearchBot, ChatGPT-User, Bytespider, Meta-ExternalAgent, Amazonbot, and cohere-ai.

"ai_use_details": {
  "robots_txt": {
    "status": "partially_reserved",
    "found": true,
    "disallowed_agents": ["GPTBot", "CCBot", "Google-Extended"],
    "disallowed_by_name": ["GPTBot", "CCBot", "Google-Extended"]
  }
}

disallowed_by_name separates agents the file names explicitly from agents blocked only by the * group. That tells you whether a block was deliberate or a side effect. Claude-SearchBot, Claude-User, and Perplexity-User aren't in that list yet. Use Crawler view to check those directly.

If you publish content and want it read by AI answer engines, the rules that matter most are the ones for the search and answer bots. Check them first.

robots.txtai crawlersgptbotclaudebotgaio

Open a receipt for a page you choose.

Start free, crawl a URL, and check exactly what was billed and why.