Does robots.txt stop AI training? What it does and does not do

A robots.txt line is how each AI company says you can opt out of training. It works only for the names you write, only from then on, and only for crawlers that honor it. The operators' own words on each limit.

By ClearReadout Updated Facts last checked

Partly. A line in robots.txt is how each AI company says you can opt out of training, and the ones that document it say they honor it. But it has three limits, and each operator states them in its own way.

Here is the line for the two training crawlers our check asks under:

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

It works only for the names you write

robots.txt is addressed by name. A group for GPTBot speaks to OpenAI’s training crawler and to nothing else. So an opt-out reaches exactly the companies whose names are in the file.

The names are not all crawlers, either. Google and Apple use a word in robots.txt to control training while their search crawlers keep crawling:

  • Google-Extended. Google says there is no separate Google-Extended crawler. Googlebot and its other crawlers record the setting as they go, and Google applies it to training and to grounding outside Search. Google also says the token does not affect a site’s place in Google Search. Disallowing it does not stop Googlebot.
  • Applebot-Extended. Apple says disallowing it opts your content out of training its models, while Applebot keeps crawling for Spotlight, Siri and Safari.

Perplexity says PerplexityBot is not used to crawl content for AI models and documents no separate training crawler, so there is no Perplexity training name to write. The full split is in Three kinds of AI visitor.

It works from now on

Anthropic’s wording is exact: restricting ClaudeBot signals that a site’s future materials should be left out of training. Squarespace, whose AI box writes these lines for you, says ticking it does not remove anything already collected. OpenAI’s page describes what disallowing GPTBot indicates and says nothing about what was gathered before.

Google names one more limit. Its token cannot stop the same or similar words being used if another site that has not disallowed Google-Extended published them. A product description copied onto a marketplace listing carries that site’s setting, not yours.

It is a request, not a lock

robots.txt asks. It does not refuse anything. The companies above say they honor it; a crawler that does not, ignores it. Squarespace says it plainly on its own help page: the only way to make sure no crawler ever sees a page is to make it private.

To refuse a crawler outright, the refusal has to happen at your server or firewall. That has its own cost: Anthropic warns that blocking ClaudeBot by address stops it reading the robots.txt that would have told it no. See ClaudeBot.

What is changing

Two newer signals let a site state a training preference once, instead of name by name.

  • Since 30 October 2026, Anthropic says it recognizes a general machine-readable “no AI training” preference, drawn from draft work in the IETF’s aipref group. A robots.txt rule written for ClaudeBot still comes first.
  • In early 2027, Google says it intends to support the same shared training preference signal, written as user-agent: __usage_ai-training.

Cloudflare offers its own version, Content Signals: lines such as Content-signal: search=yes, ai-train=no. Cloudflare’s own page says the policy defines the categories without setting a preference for you.

None of these block anything either. They are clearer ways of asking.

What a check shows

Our report shows, for each of the ten names, what your robots.txt says to it: “Allows” or “Blocks”. It also lists Google-Extended under “robots.txt settings: these never visit”, with what your file says to it. So you can see at a glance whether the opt-out you meant to write is the one your file actually says. Whether to write it at all is Should you block AI crawlers on your store?

Can Google and ChatGPT read your web page?

Free. Sign in with Google or email first, no card.See a sample report