// blog · all articles

AI training opt-out in robots.txt: a test on Google’s file

Illustrazione astratta di un file di regole che assegna consenso o rifiuto a diversi crawler

The robots.txt file on google.com, last modified on 23 November, now contains the new __usage_ai-training token: the line that will let a website tell several AI providers at once «do not use my content to train generative AI models». Google and OpenAI have announced they will honour it, and the draft that defines it is written by an Anthropic engineer.

It looks like a line you can simply copy. It is not. I read the IETF draft, downloaded Google’s file and analysed it with a parser written to follow RFC 9309, then tested five typical configurations. The main result is counterintuitive: with this token, every path you do not block becomes an explicit yes to AI training. And Google’s own file, read literally, says exactly that for most of the domain.

In short
  • __usage_ai-training is a policy token defined in an IETF draft (version 01, 16 November 2026): an ordinary robots.txt group that expresses a preference about training, not about crawling.
  • Two rules change how you reason: the User-agent: * group does not apply to the token, and a path that is allowed in the group is a preference in favour, not silence.
  • In google.com/robots.txt the token shares a group with 41 crawlers: 182 rules copied from the general group, the only difference is Maps. Google-Extended stays in the general group.
  • For Google, using the token without naming Google-Extended is treated as disallowing Google-Extended, which also governs grounding in the Gemini apps: it is a visibility decision, not only a rights decision.

What __usage_ai-training is and who supports it

On 30 October 2026 Google announced on the Search Central Blog that it plans to support a shared AI training control in robots.txt, based on the work of the IETF AIPREF group. On the same day OpenAI wrote that it will honour the signal and aims to implement it «in the coming months». The technical draft, draft-kelley-aipref-training-preference-signal, is authored by Kevin Kelley of Anthropic.

Dates matter, because today the token does nothing yet. In its crawler documentation Google says it intends to support it in early 2027. The draft is an individual Internet-Draft: version 01 is dated 16 November 2026 and expires on 20 May 2027. It is work in progress and it can change.

What exactly does it cover? The draft adopts the AIPREF vocabulary definition: AI training means using content to modify the learned parameters of a generative AI model. Models used only for classification, ranking or scoring are excluded. In plain terms: the token says nothing about indexing, ranking or answers with links. It is about training.

How it works, rule by rule

The strength of the draft is that it invents no new syntax. It reuses RFC 9309 groups as they are: User-agent lines, Allow and Disallow rules, longest-match precedence. What changes is who reads them and what they conclude.

Flow for reading the __usage_ai-training token: without a dedicated group there is no preference, otherwise the longest matching rule decides whether the preference is against or in favour of training
The reading flow defined by the IETF draft. Simplified reconstruction from draft-kelley-aipref-training-preference-signal-01 (datatracker.ietf.org), section 4.2.

1. It is a group like any other

You write the token where you would write a crawler name. This is the example from the draft:

User-Agent: __usage_ai-training
Disallow: /
Allow: /press-kit/

It means: a preference against training on the whole site, a preference in favour under /press-kit/. A parser that does not know the token ignores it, as it ignores any user agent that does not concern it. That is what keeps the mechanism compatible with the parsers already deployed.

2. The asterisk does not count

For crawlers, if no group names them, User-agent: * applies. For the token it does not: the draft says wildcard groups must not be interpreted as matching the token. If the file has no User-agent: __usage_ai-training line, no preference has been expressed. Your old generic Disallow says nothing about training.

3. Allowed means yes

This is the point I see underestimated. The draft says that if the path lookup returns “disallowed” the preference is against, and if it returns “allowed” the preference is in favour. In RFC 9309 a path that matches no rule is allowed. So as soon as you create the token group, every path you do not explicitly block becomes consent to training. Not a “don’t know”.

4. Preferences and crawling are independent

The token is not a crawling instruction. GPTBot, ClaudeBot and Googlebot keep reading the groups that name them, exactly as before. A provider may avoid fetching pages it would not use, but it is not required to. If you want to limit traffic, you still need groups for individual crawlers.

5. Specific controls win over the general one

The draft lets providers treat their own tokens as more specific than the shared one. Google says it clearly: if a site uses the token to opt out of training and Google-Extended is not named, Google will treat it as a Google-Extended disallow. If Google-Extended is named, that rule applies. And according to Google’s documentation, Google-Extended governs both the training of Gemini models and grounding in the Gemini apps, while it does not affect inclusion or ranking in Google Search.

The test

Question: what does a robots.txt that uses the token actually express, both for crawlers and for training? I ran two tests.

Method

  1. Parser: I wrote an evaluator that follows RFC 9309 (groups per user agent, groups with the same name merged, longest match, ties won by Allow, * and $ wildcards) and the AIPREF draft (the * group does not apply to the token; allowed means in favour).
  2. Real file: on 24 November 2026 I downloaded https://www.google.com/robots.txt in the browser (12,526 bytes, Last-Modified 23 November 2026, 19:00 GMT) and analysed it: group structure, rule comparison, results for 7 user agents on 14 paths.
  3. Typical configurations: I wrote five sample robots.txt files and computed, for each path, the token preference and the result for GPTBot. For crawling I cross-checked my evaluator against urllib.robotparser in Python 3.13, the standard library parser.

Test 1: google.com/robots.txt

The file has 49 User-agent lines in 5 groups. The general group names *, Google-Extended and Yandex and holds 236 rules. The token group names __usage_ai-training plus 41 crawlers, including GPTBot, ClaudeBot, CCBot, Applebot-Extended, Bytespider, Meta-ExternalAgent and Amazonbot, and holds 183 rules.

Comparing the two groupsValue
Rules in the * group236 (65 Allow, 171 Disallow)
Rules in the token group183 (28 Allow, 155 Disallow)
Rules identical in both groups182
Rules only in the * group53, all about Maps (36 Allow)
Rules only in the token group1: Disallow: /maps

The reason for the duplication is RFC 9309: a crawler named in a group follows only that group and stops reading *. By putting 41 crawlers in the same group as the token, Google had to copy all the general rules for them. A comment in the file says so too: every new user agent goes either in the general group or in the token group, never in both. The result is below.

Matrix with the google.com robots.txt result for Googlebot, Google-Extended, OAI-SearchBot, GPTBot and ClaudeBot and the __usage_ai-training token on four paths
Results computed on the file downloaded on 24/11/2026. Maps pages are closed to training crawlers but open to Googlebot, Google-Extended and AI search crawlers. Marco Maltraversi analysis.

Three technical readings.

  • Training and AI search are treated differently. GPTBot and ClaudeBot cannot fetch /maps/place/…; OAI-SearchBot and PerplexityBot are not named, follow the general group and can.
  • Google-Extended is outside the token. It is named in the * group, so under the rule Google itself announced the token does not apply to it: on Maps the answer for Google-Extended is “allowed”.
  • The token says yes to almost everything else. On 14 test paths the token group expresses a preference against training on 5 (search, images, Maps) and in favour on 9, including /, /about/, /books?id=… and /news/. Not because Google wrote it, but because the draft reads every unblocked path that way.

Test 2: five typical configurations

Every file starts from the same base, User-agent: * with Disallow: /admin/. I tested the paths /, /admin/, /blog/post and /press-kit/logo.png.

ConfigurationTraining preferenceEffect on GPTBot
S1. Only User-agent: *None, on every pathUnchanged
S2. Separate group with only the token and Disallow: /Against, on every pathUnchanged: /admin/ stays blocked
S3. Token and GPTBot in the same group, Disallow: /blog/Against only on /blog/; in favour on /, /admin/ and /press-kit/Can fetch /admin/: it lost the * rules
S4. Token with Disallow: / and Google-Extended with Allow: /Against for whoever follows the tokenUnchanged; for Google, Google-Extended applies
S5. The draft example, with GPTBot in the groupAgainst everywhere, in favour on /press-kit/Blocked everywhere except /press-kit/; /admin/ blocked only because of Disallow: /

Across the 20 crawling results for GPTBot (5 files by 4 paths), my evaluator and Python 3.13 urllib.robotparser gave the same answer 20 times out of 20. It is a cross-check of the method, not proof that every parser in the wild behaves the same way.

What you cannot conclude

  • Nobody reads the token yet. Announced dates range from early 2027 to “the coming months”. The test describes what the file expresses, not what providers do today.
  • I do not know Google’s intentions. That the file expresses a yes to training on /about/ is a formal consequence of the draft. Google may read it differently, or the draft may change.
  • The draft is individual and evolving. I tested version 01. A later version may change the rules for allowed paths.
  • The parser sample is minimal. I compared one deployed parser (Python). Others, as the draft itself admits, match names more loosely.
  • I also wanted to measure adoption on major Italian sites, but the browser I used required a separate approval for every new domain: I did not run that part, and I do not report numbers I do not have.

What to do, step by step

The token arrives in 2027, but it is worth deciding now, because it touches contracts, licences and visibility. This is the path I suggest to clients.

  1. Separate the three decisions. Crawling for search (Googlebot, Bingbot, OAI-SearchBot, PerplexityBot), use in grounded answers (for Google, Google-Extended), training (the new token and proprietary tokens). Three different questions, three possibly different answers.
  2. Put the token in a group of its own. Do not add crawlers to the same group: it is the simplest way to leave crawling untouched and avoid copying the * rules.
  3. Start from Disallow: / and open only what you really want to grant. Since allowed means yes, the prudent setup is to deny everything and allow explicitly, for example the press section.
  4. Decide explicitly about Google-Extended. If you deny training with the token but want to stay citable in the Gemini apps, name Google-Extended with the rules you want. If you do not, Google will apply the token to it as well.
  5. Test the file before publishing it. List 10-20 representative URLs and check, for every user agent you care about and for the token, the expected result. A five-minute check that prevents opening /admin/ to a crawler by mistake.

An example that separates the decisions, for a site that wants to stay in search and in answers with links, but out of training datasets:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php

User-agent: __usage_ai-training
Disallow: /
Allow: /press/

User-agent: Google-Extended
Disallow: /wp-admin/

Here crawling changes for nobody, training is denied except for /press/, and Google-Extended stays allowed for grounding in Gemini (with a consequence to weigh: for Google it also counts as consent to training Gemini models, because today both uses sit in the same token).

Mistakes to avoid

  • Assuming User-agent: * covers the token. It does not. Without a dedicated group you have expressed nothing.
  • Blocking only some folders. Disallow: /blog/ in the token group also means “yes” for the rest of the site.
  • Copying Google’s file. Google mixes the token and crawlers because it also wants to block those 41 bots from crawling Maps, and that is why it copies 182 rules. On a normal site it is a source of errors, not a template.
  • Confusing training and citations. The token does not remove a site from search answers. But for Google it translates into Google-Extended, which also covers grounding in Gemini: anyone working on GEO should know this before switching it on.
  • Deleting proprietary controls. Google and OpenAI wrote that existing controls will keep working. The token adds to them, it does not replace them.

My opinion

The token is good news: a shared vocabulary, no new syntax, compatibility with existing parsers. For anyone running large sites it really cuts the work of chasing every new crawler. But treating “allowed” as “in favour” turns a file born to manage traffic into a licence statement, and a robots.txt is rarely written with the care of a licence document.

Google’s file is the perfect example: technically flawless for crawling, yet read with the draft in hand it says yes to training on most of the domain. I do not think it is a mistake; I think it shows how easy it is to express consent without meaning to. My advice is to treat the token group as a legal document: few paths, written on purpose, reviewed by whoever decides on content, and tested the way you test code.

With __usage_ai-training, robots.txt stops being just a technical file: every line you do not write is consent.

Want to know what your robots.txt tells search crawlers, AI answers and AI training today?

Request an SEO & GEO Audit →

FAQ

What is __usage_ai-training in robots.txt?

It is a policy token defined in an IETF draft: you write it like a user agent and use it to express, path by path, a preference for or against using your content to train generative AI models.

When will Google honour the token?

Google’s crawler documentation says early 2027. OpenAI talks about the coming months. Today the token expresses a preference that no provider applies yet.

Does the token block GPTBot or Googlebot from crawling?

No. The draft defines it as independent from crawler rules. To limit crawling you still need groups naming each bot.

Will the token remove me from AI Overviews or AI Mode?

No, Search does not depend on Google-Extended. But Google will treat the token as a Google-Extended disallow if you do not name it, and Google-Extended also covers grounding in the Gemini apps.

Is it enough to disallow a few folders?

Only if you want to say yes to the rest. In the token group every unblocked path expresses a preference in favour of training. The prudent choice is to start from Disallow: / and open explicitly.

robots.txt is only one of the signals that decide how a generative engine uses your site: I cover the bigger picture in what GEO is in marketing. If you want to set these choices with a method, see the GEO and AI search service.

Want to apply this to your site?

I'll tell you frankly where you stand today, on Google and in AI answers, and what it takes to grow.

Request an SEO & GEO analysis →
Picture of Marco Maltraversi

Marco Maltraversi

Computer engineer, SEO and GEO consultant for over 20 years. Author of "SEO e SEM" and "SEO Audit Avanzato" (Edizioni LSWR), lecturer and speaker, founder of YourDigitalWeb and DeepSEO.