AI bots

What robots.txt can and cannot do about AI bots

robots.txt asks AI bots to stay away. It cannot force them. Tokens, kinds and a file to copy.

On this page 9 sections

robots.txt asks crawlers to stay away; it does not enforce anything. Blocking a training crawler is a different choice from leaving AI search. Each company decides which of its bots follow the file.

robots.txt is a request, not a lock

The standard says so itself: RFC 9309 states that "these rules are not a form of access authorization". A well-behaved crawler reads your file and follows it. A badly behaved one can ignore it, and nothing in the protocol stops that.

Google adds that its robots.txt introduction says the file is "not a mechanism for keeping a web page out of Google". To keep a page out of Google, use noindex or password protection. A blocked URL can still be indexed if other sites link to it.

The 3 kinds of AI bots

The same company often runs all 3 kinds under different names, so treating them as one "AI crawler" leads to blocks that do more, or less, than you meant. See AI crawlers, assistants and agents.

Kind What it does Examples
Training crawler Collects content that may be used to train models GPTBot, ClaudeBot
AI search crawler Indexes pages so an assistant can show or cite them OAI-SearchBot, Claude-SearchBot, PerplexityBot
User-triggered fetcher Loads a page because a person asked an assistant about it ChatGPT-User, Claude-User, Perplexity-User

Training crawlers

OpenAI says GPTBot "is used to crawl content that may be used in training our generative AI foundation models" and that "disallowing GPTBot indicates a site's content should not be used in training". Anthropic says the same of ClaudeBot: when a site restricts it, "it signals that the site's future materials should be excluded from our AI model training datasets".

Note the word "future". Blocking a training crawler does not remove content it has already collected.

AI search crawlers

OpenAI describes OAI-SearchBot as the crawler that surfaces websites in ChatGPT's search features. Its documentation says "sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers, though can still appear as navigational links". OpenAI also says the 2 settings are independent: you can allow OAI-SearchBot and disallow GPTBot.

Anthropic's table says that disabling Claude-SearchBot "prevents our system from indexing your content for search optimization, which may reduce your site's visibility and accuracy in user search results". Perplexity says PerplexityBot is "designed to surface and link websites in search results" and "is not used to crawl content for AI foundation models".

User-triggered fetchers

These bots load a page because someone asked a question, and the companies disagree on whether robots.txt applies.

  • OpenAI says of ChatGPT-User: "Because these actions are initiated by a user, robots.txt rules may not apply." It adds that ChatGPT-User "is not used to determine whether content may appear in Search". Each of OpenAI's bots is compared in GPTBot, OAI-SearchBot and ChatGPT-User.
  • Perplexity says of Perplexity-User: "Since a user requested the fetch, this fetcher generally ignores robots.txt rules." Cloudflare and Perplexity also dispute whether Perplexity reached sites that blocked both its bots; see Perplexity's crawlers and robots.txt.
  • Anthropic says Claude-User "allows site owners to control which sites can be accessed through these user-initiated requests". Disabling it "may reduce your site's visibility for user-directed web search".
  • Google says its user-triggered fetchers "generally ignore robots.txt rules" because a user requested the fetch.

Robots.txt alone may not stop these fetchers. A firewall or login would, at the cost of blocking real visitors.

Swipe sideways to see the whole diagram.

What robots.txt controls depends on the kind of bot, per each company's documentation.
The diagram as a list
  1. GPTBot is a training crawler. Disallowing it signals the content should not be used in training.
  2. OAI-SearchBot is an AI search crawler. Opting out removes the site from ChatGPT search answers.
  3. ChatGPT-User is a user-triggered fetcher. OpenAI says robots.txt rules may not apply.
  4. Perplexity-User generally ignores robots.txt rules.
  5. Claude-User lets site owners control the requests.

Tokens that are not crawlers

Some tokens control how content is used, not who fetches it.

Google-Extended. Google's list of common crawlers says it has no separate user agent string: "Crawling is done with existing Google user agent strings; the robots.txt user-agent token is used in a control capacity". It manages whether crawled content may be used for training future Gemini models and for grounding in Gemini Apps and Grounding with Google Search on Vertex AI. Google adds that it "does not impact a site's inclusion in Google Search nor is it used as a ranking signal".

Google AI Overviews and AI Mode. Google's guide to AI features says Googlebot directives control crawling for Search, because AI "is built into Search". Blocking Google-Extended does not remove a site from AI Overviews or AI Mode. To limit what Search shows, Google points to nosnippet, data-nosnippet, max-snippet and noindex.

Applebot-Extended. Apple's Applebot page says publishers can opt out of having content used to train its generative models by disallowing Applebot-Extended. It also says that even then, your instructions "may still allow Applebot to crawl your webpages" and your content stays discoverable in Spotlight, Siri and Safari. If your file does not mention Applebot but does mention Googlebot, Applebot follows the Googlebot instructions.

__usage_ai-training. A new IETF draft uses robots.txt to state a general preference about AI training for any company that reads it: a group for the token __usage_ai-training with Disallow: / means "no AI training" for the paths it covers. It is not a crawling rule, and the * group never matches it. Anthropic's help page says that since 30 October 2026 it "has begun recognizing a machine-readable signal" built on this draft, rolling out over time, and that a rule naming ClaudeBot takes priority over it. The draft has no formal IETF standing yet and no other company has said it reads the token, so use it alongside named rules, not instead of them.

User-agent: __usage_ai-training
Disallow: /

A robots.txt that allows AI search and blocks training

This file blocks the training and control tokens above and explicitly allows the 3 AI search crawlers. Use only the tokens you want; each line is a decision.

# Training and model-use controls
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

# AI search crawlers
User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

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

Check what Google-Extended costs you first: it also covers grounding in Gemini Apps, so disallowing it does more than stop training.

How group matching works

A bot reads only the group that names it. Google's robots.txt specification says "only one group is valid for a particular crawler" and that the crawler picks the group with the most specific matching user agent. Specific groups and the * group are not combined. Order in the file does not matter.

In the example, PerplexityBot has its own group, so it ignores Disallow: /admin/ under *. If you want that rule to apply to a bot with its own group, repeat it inside that group. RFC 9309 adds that matching is case-insensitive and that several groups naming the same token are merged into one.

RFC 9309 details that catch people out

Situation What a crawler should do
robots.txt returns a 4xx status May access any resource on the server
robots.txt is unreachable (5xx or network error) Must assume complete disallow
robots.txt is cached Should not use the cache for more than 24 hours, unless the file is unreachable
robots.txt is large Parsing limit must be at least 500 KiB

A deleted or misrouted robots.txt that returns 404 tells crawlers everything is open, and a server error on that one URL can stop compliant crawlers from fetching anything. If the file stays undefined for a long time (the RFC suggests 30 days as an example), crawlers may treat it as unavailable.

Changes are not instant. Perplexity says changes may take up to 24 hours to take effect, and OpenAI gives the same figure, "~24 hours", for search. Google generally caches the file for up to 24 hours, and longer if it cannot refresh it.

Check what your host or CDN already changed

Some hosts and CDNs add AI bot rules for you, as a managed block in robots.txt or a setting that blocks AI crawlers before they reach your server. A firewall rule also blocks bots whatever robots.txt says, so your own file may not show the whole picture. Fetch the live file at https://example.com/robots.txt (with your own domain) and check your CDN or host settings for rules that apply first.

Blocking at the network level can backfire. Anthropic warns that blocking IP addresses "may not work correctly or persistently guarantee an opt-out, as doing so impedes our ability to read your robots.txt file". Google's AI guidance also lists making sure crawling is allowed "by any CDN or hosting infrastructure" among its basics.

Verify the bots that actually arrive

Compare your logs or analytics before and after a change, and verify the bots that matter before you trust a name in a log line.

How Lundot handles this

The AI bots report shows which bots requested which pages after a robots.txt change. The crawler check reads your robots.txt per bot. See also Connect Cloudflare.

Sources

Put it into practice

  • DocsConnect Cloudflare

    Record verified AI bot requests at Cloudflare: what is added, what access is asked for, how it is checked.

  • DocsAI bots

    Verified AI crawler, assistant and agent requests, per page and company.

  • Free toolCheck your site

    Which AI crawlers your robots.txt lets in, and whether your home page has text without JavaScript. Free, no account.

See what your robots.txt tells AI crawlers

The AI crawler check is free and needs no account. It reads your robots.txt for each AI crawler, checks whether your home page has text without JavaScript, and looks for llms.txt.