robots.txt for AI agents
AI vendors split their bots into training crawlers, search crawlers and user-triggered fetchers, so robots.txt can welcome agents acting for a person while refusing training; the common mistake is blocking those agents from sign-in and pricing pages.
Published 2026-11-26. Updated 2026-11-29. Facts checked 2026-11-26. Read as Markdown
In short
- robots.txt (stable, RFC 9309) is a request, not a lock. Well-behaved bots read it; nothing forces them to [1].
- AI vendors publish separate bot names by job. There are training crawlers (GPTBot, ClaudeBot), search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and user-triggered fetchers that fetch a page because a person asked (ChatGPT-User, Claude-User, Perplexity-User). You can treat each group differently.
- Most user-triggered fetchers say robots.txt may not apply to them. Claude-User is the documented exception, since it follows robots.txt.
-
To refuse training in one line, the
__usage_ai-traininggroup is the option vendors have committed to (IETF individual draft -01). Cloudflare'sContent-Signal(vendor-proprietary) and the IETFContent-Usagerule (IETF WG draft) have no vendor saying it reads them yet. -
The common mistake is rules written for crawlers that also block agents from
/login,/signupor/pricing. Four of the 14 sites we checked in November 2026 did this.
robots.txt works per host, in groups of rules
The file lives at /robots.txt on each host, including each subdomain [1]. Anthropic and Amazon say they read it per host [2][3], so an app on app.example.com has its own rules. Rules sit in groups under one or more User-agent: lines, with Allow: and Disallow: paths. A bot uses the group that names it, or the * group if none does. The longest matching path wins. If robots.txt answers with a server error, a crawler should assume everything is disallowed [1].
A CDN or firewall can still block a bot that robots.txt allows.
Three kinds of AI bot, and one more
Each token below comes from the vendor's own documentation, checked on 2026-11-26 [2][3][4][5][6][7][8][9][10][11][19]. The tokens' status is vendor-proprietary, and they change often.
Training crawlers
They collect pages to train models.
| Token | Vendor | Follows robots.txt |
|---|---|---|
| GPTBot | OpenAI | yes |
| ClaudeBot | Anthropic | yes |
| meta-externalagent | Meta | yes |
| Amazonbot | Amazon | yes |
| CCBot | Common Crawl | yes |
| MistralAI-Training | Mistral | yes |
Two tokens are control names only, and no bot sends them. Google-Extended controls training and grounding for Google's generative AI products, but not AI Overviews or AI Mode in Search [5]. Applebot-Extended is Apple's training opt-out [7]. Bytespider (ByteDance) appears in Cloudflare's list, but we found no ByteDance documentation, so its purpose is unverified.
Search crawlers
They build an index used for search results and AI answers.
| Token | Vendor | Follows robots.txt |
|---|---|---|
| OAI-SearchBot | OpenAI | yes |
| Claude-SearchBot | Anthropic | yes |
| PerplexityBot | Perplexity | yes |
| Googlebot | yes | |
| bingbot | Microsoft | yes |
| Applebot | Apple | yes |
| meta-webindexer | Meta | yes |
| Amzn-SearchBot | Amazon | yes |
| MistralAI-Index | Mistral | yes |
"Yes" in these tables means the vendor tells site owners to control the bot through robots.txt. Meta and Mistral say so without stating compliance in so many words. Blocking a search crawler keeps you out of that AI search product, not only out of training.
User-triggered fetchers
They fetch a page at the moment a person asks an AI assistant to read or act on it. These are the agents that book, compare and sign up.
| Token | Vendor | Follows robots.txt |
|---|---|---|
| ChatGPT-User | OpenAI | may not apply |
| Claude-User | Anthropic | yes |
| Perplexity-User | Perplexity | may not apply |
| Google-GeminiNotebook | may not apply | |
| meta-externalfetcher | Meta | may not apply |
| Amzn-User | Amazon | may not apply |
| DuckAssistBot | DuckDuckGo | yes |
| MistralAI-User | Mistral | not stated |
OpenAI's bot page says robots.txt rules "may not apply" to ChatGPT-User [4].
Browser agents
Hosted browsers that act for a person are identified differently. Claude-Agent is added to a real browser user agent, and Anthropic publishes its addresses in a SAIL file (SAIL is an IETF individual draft, -00) [9]. Google-Agent is a user-triggered agent that generally ignores robots.txt, and Google is experimenting with signing its requests [6]. OpenAI's cloud browser has no robots.txt token and signs its requests with Web Bot Auth (IETF WG draft -01) instead [12].
Saying "do not train on this"
Three syntaxes compete. Use the first if you want a training opt-out that vendors have said they will honor.
__usage_ai-training (IETF individual draft -01)
A group for this made-up user agent name carries a training preference. Disallow paths mean "do not use for AI training" [13]. The * group does not apply to it, and if the group is absent you have stated no preference. Anthropic, OpenAI and Microsoft have committed to honor it, and Google says it will in early 2027 [13]. It covers training only, not search or AI answers. A working group pull request may rename it, so watch for changes.
Content-Usage (IETF WG draft, attach-05 and vocab-08)
The IETF aipref working group's vocabulary (train-ai, ai-use, search, each y or n), attached by an HTTP header or a robots.txt rule [14]. The labels changed in almost every revision, no AI vendor documents reading it yet, and an open proposal would drop the robots.txt form and keep only the header.
Content-Signal (vendor-proprietary, Cloudflare)
A line inside a robots.txt group with search, ai-input and ai-train set to yes or no [15]. Cloudflare's own scanner scores it. Its IETF draft expired on 2026-04-04, and no AI vendor documents honoring it.
Two more are worth naming for completeness. Microsoft's page-level AI preferences (vendor-proprietary), a meta tag or X-Robots-Tag value honored from 2027-02-01 [16], and RSL (community draft, 1.0), which points to machine-readable license terms with a License: line [17].
The common mistake is blocking agents from sign-in and pricing
robots.txt files are usually written for crawlers. A rule like Disallow: /login in the * group keeps crawlers out of a page that has nothing to index. It also turns away every user-triggered agent that obeys robots.txt and has no group of its own.
In our November 2026 check of 14 sites, robots.txt asked every user-triggered agent to stay out of the sign-in, sign-up or app pages on four of them [18]. Some of these rules sat in the robots.txt of the app's own subdomain. An agent asked by a person to sign in or download an invoice stops there. That may be deliberate. Make it a decision.
Pricing and contact pages are different. Blocking agents there is rarely meant, and it leaves an agent with no answer to "what does this cost?". Our scanner treats a block on pricing or contact as the most urgent kind of fix.
An example to start from
Built from fields defined in RFC 9309 [1], with tokens from the vendor pages [2][4][5][7][8][19]. Every allow and disallow here is a policy choice for you to make.
# Search and answer crawlers
User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /
# Agents fetching for a person, including sign-in and pricing
User-agent: ChatGPT-User
User-agent: Claude-User
User-agent: Perplexity-User
Allow: /
Disallow: /admin/
# Training crawlers (here: refused)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: CCBot
Disallow: /
# Shared training preference
User-agent: __usage_ai-training
Disallow: /
User-agent: *
Disallow: /admin/
Sitemap: https://example.com/sitemap.xml
Each named group replaces the * group for that bot, so repeat any path you want kept private, as /admin/ is here. Check the robots.txt on every subdomain too.
Questions
Does ChatGPT obey robots.txt?
OpenAI's training crawler GPTBot and search crawler OAI-SearchBot follow robots.txt. For ChatGPT-User, which fetches pages when a person asks, OpenAI says robots.txt rules may not apply.
Does Claude obey robots.txt?
Anthropic says ClaudeBot, Claude-SearchBot and Claude-User all follow robots.txt. That means a rule blocking /login stops Claude-User from reaching your sign-in page for a person.
How do I block AI training but allow AI search?
Disallow the training tokens (GPTBot, ClaudeBot, Google-Extended, Applebot-Extended, CCBot and others) and allow the search tokens (OAI-SearchBot, Claude-SearchBot, PerplexityBot). You can add a __usage_ai-training group as a shared training preference that several vendors have committed to.
Does Content-Signal in robots.txt work?
Cloudflare writes it and its scanner scores it, but no AI vendor documents honoring it as of November 2026. The __usage_ai-training group is the training opt-out vendors have said they will read.