DEV Community

Rishav Mandal
Rishav Mandal

Posted on Originally published at promptpost.io AI-assisted

robots.txt AI Training Opt-Out: The __usage_ai-training Token Explained

Key takeaways

  • On 30 October 2026, OpenAI, Google, Microsoft and Anthropic said they'll honour one shared robots.txt AI training signal: a group for the policy token __usage_ai-training.
  • Disallow: / in that group says "don't use my content for generative AI training". It's a preference, not a crawl block. Search crawling and, in most cases, AI answers are handled separately.
  • Only Anthropic has started implementing it. OpenAI says "in the coming months" and Google and Microsoft point to 2027, so keep your existing GPTBot, Google-Extended and ClaudeBot rules for now.

If you run a blog or a business site, managing AI crawlers has been a chore. Each company has its own user agent, and the list keeps growing. Opting out of training meant adding a separate block for each bot and hoping you hadn't missed one.

The four largest Western AI labs now say they'll respect a single line. Here's how it works and how to add it without breaking anything.

The syntax

The signal uses normal robots.txt syntax with a special user-agent name, called a policy token:

User-Agent: __usage_ai-training
Disallow: /
Enter fullscreen mode Exit fullscreen mode

That's the whole opt-out. A disallowed path signals a preference against training on that content, and an allowed path signals a preference in favour. So you can be selective:

User-Agent: __usage_ai-training
Disallow: /
Allow: /press-kit/
Enter fullscreen mode Exit fullscreen mode

This example says: don't train on my site, except the press kit.

A few details from the draft specification matter:

  • Matching is exact and case-insensitive. The token must be spelled exactly, including both leading underscores.
  • Wildcard groups don't count. A rule under User-Agent: * is not treated as a training preference. You need the dedicated group.
  • It can share a group with crawler names. You can list it alongside other user agents in one group if that suits your file's layout.

What it does and doesn't block

This is where people get confused, so it's worth being precise.

It's about training, not crawling. The draft says the policy token is not a crawl directive. Crawler rules keep their usual meaning, so a site can let bots fetch pages while saying "don't train on this".

It doesn't control search. Normal search indexing by Googlebot or Bingbot isn't affected. Your search rankings don't depend on this line.

AI answers are a grey area. Live retrieval for chatbot answers, often called grounding, isn't governed by the token itself. Microsoft plans a separate grounding setting. Google says a token opt-out will be read as a Google-Extended disallow, and Google-Extended also covers grounding in Gemini. So on Google's side, opting out of training through the token may also keep your content out of some Gemini answers. Decide whether that trade-off suits you.

It's voluntary. robots.txt is a request, not access control. Scrapers that ignore robots.txt will ignore this too.

Past training is unclear. None of the four companies has said whether the preference applies to data they've already collected.

Who honours it, and when

Company Status (as announced on 30 October 2026)
Anthropic Has started implementing support
OpenAI "In the coming months"
Google Planned for 2027
Microsoft Planned for 2027, with a separate grounding setting

The standard itself is still young. It's an individual Internet-Draft titled "Machine-Readable Training Preference Signal", authored by Kevin Kelley of Anthropic, published on 30 October 2026. It isn't an endorsed IETF standard yet, and the draft is due to expire on 3 May 2027 unless it's updated.

Keep your existing rules for now

Until each company's support is live, the provider-specific user agents remain the only rules that definitely work. Keep them in place alongside the new token. A practical setup for a site that wants to stay in search and AI search results but opt out of training looks like this:

# Shared training preference (new)
User-Agent: __usage_ai-training
Disallow: /

# Provider-specific training crawlers (keep during the transition)
User-Agent: GPTBot
Disallow: /

User-Agent: Google-Extended
Disallow: /

User-Agent: ClaudeBot
Disallow: /

# Normal search crawling stays open
User-Agent: *
Allow: /

Sitemap: https://example.com/sitemap.xml
Enter fullscreen mode Exit fullscreen mode

Two cautions before you copy this:

  • Check what each bot does. Some companies use different user agents for training and for live AI search. Blocking the wrong one can remove you from AI search results you might want to appear in. Read each provider's crawler documentation before blocking.
  • Repeat your shared disallows. A crawler obeys only the most specific group that matches it. If you have rules like Disallow: /admin under User-Agent: *, a bot with its own group won't see them. Repeat those lines inside each named group.

That second point catches a lot of sites. On PromptPost, my own robots.txt repeats the shared disallow rules inside every bot-specific group for exactly this reason.

How to add it

  • Static site or custom app: edit robots.txt in your public root and add the group.
  • WordPress: SEO plugins usually offer a robots.txt editor. Otherwise, create a physical robots.txt file in the site root, which overrides the virtual one.
  • Generated robots.txt: if your framework builds the file dynamically, add the group in the template or controller that outputs it.

Then load https://yourdomain.com/robots.txt in a browser and confirm the new group appears exactly as written.

Frequently asked questions

What is __usage_ai-training in robots.txt?

It's a policy token. Adding a User-Agent: __usage_ai-training group with Disallow: / tells participating AI companies you prefer your content not be used for generative AI training.

Will blocking AI training hurt my Google search rankings?

No. The token doesn't affect normal search crawling or indexing. It's separate from Googlebot.

Which AI companies honour the training opt-out token?

OpenAI, Google, Microsoft and Anthropic said they will. Anthropic has started; OpenAI says in the coming months; Google and Microsoft plan support in 2027.

Should I remove my GPTBot and Google-Extended rules?

Not yet. Keep provider-specific rules until each company's support for the shared token is live.


Sources: announcements of 30 October 2026 as reported by AI Weekly, PPC Land and others; syntax, scope and draft details from analysis of the IETF draft "Machine-Readable Training Preference Signal". Timelines are as announced and may change.

Originally published on PromptPost.

Top comments (0)