SEO Guide

Opt Out of AI Training in robots.txt

On October 30, 2026, a draft for stating an AI training opt-out with one shared robots.txt line was published, and Google said it will support it in early 2027. Here's how to write it, and how to keep search and Gemini citations — with this site's robots.txt as a worked example.

8 min read2026-11-02

To opt out of AI training, add two lines to robots.txt: "User-Agent: __usage_ai-training" and "Disallow: /". It's a cross-provider signal Google plans to honor in early 2027. Until then — and for any provider you want honoring it now — also use per-company training tokens such as Google-Extended, GPTBot, and ClaudeBot. Opting out doesn't affect Search or AI Overviews, but grounding citations in Gemini may stop; to keep them, explicitly set Google-Extended to "Allow: /".

What Changed: One Line for an AI Training Preference

Until now, opting out of AI training meant listing each company's token in robots.txt — Google-Extended (Google), GPTBot (OpenAI), ClaudeBot (Anthropic), and so on. Every new token had to be added, and a missing one meant that company never saw your preference.

On October 30, 2026, a draft using the shared name "__usage_ai-training" was submitted to the IETF working group on AI usage preferences. The same day, Google announced on the Search Central Blog that it plans to support this shared line in early 2027. The draft is still an individual submission, not a standard.

Three points. (1) It's written like any robots.txt group: the name in User-Agent, paths with Disallow and Allow. (2) "User-agent: *" does not count as the shared line. (3) It isn't a crawl directive; it states whether retrieved content may be used for training. To stop crawler visits, keep using each crawler's own name.

How to Write It: The Shared Line and Per-Company Tokens for Now

Don't use the whole site for training

User-Agent: __usage_ai-training
Disallow: /

Allow only some pages (same shape as the draft's example)

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

Path rules are the usual robots.txt ones: the longer match wins. Here only /press/ is marked as allowed and everything else as not. You can also list the shared name in the same group as other tokens like GPTBot.

Until providers support it: use training tokens

# Per-company tokens until providers support the shared line (training tokens only)
User-agent: Google-Extended
Disallow: /

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

These are training tokens only. Blocking search tokens such as OAI-SearchBot (ChatGPT search) or Claude-SearchBot also stops citations from that AI search. To tell training and search crawlers apart, see how to check whether AI crawlers are blocked.

How Google Treats It: Search Unchanged, Watch Gemini Citations

  • If you opt out with the shared line and don't specify Google-Extended, Google treats it as a Google-Extended disallow
  • If Google-Extended is explicitly specified, Google follows that. Sites that allow Google-Extended stay eligible to appear in Gemini Apps answers and receive clicks via grounding, even with the shared opt-out
  • Google-Extended controls both Gemini training and grounding (using Search content in answers in Gemini Apps and elsewhere). It doesn't affect inclusion or ranking in Search

This is where the decision lies. Once Google supports it, opting out with the shared line alone also refuses Gemini citations as far as Google is concerned. For a site growing AI referrals as an entry point, that can cost you. Today's tokens offer no way to refuse training while keeping Gemini citations, so for Google you choose between allowing both and refusing both.

Opt out everywhere, but allow both for Google

User-Agent: __usage_ai-training
Disallow: /

User-agent: Google-Extended
Allow: /

AI Overviews and AI Mode are separate from Google-Extended. Both are part of Search, so they follow your regular Googlebot rules, Search Console's generative AI control, and nosnippet. For which control fits which goal, see how to check noindex.

By Goal: What to Write

GoalWriteWhat happens
Don't use any of it for AI training (keep search and AI search citations)Shared line with Disallow: /. For providers you want honoring it now, also Disallow their training tokensSearch and AI Overviews unchanged. Grounding citations in Gemini Apps may stop
Opt out of training but keep Gemini citationsShared line with Disallow: /, plus Google-Extended with Allow: /You allow Google both training and grounding. Today's tokens offer no way to refuse only training
Allow training on some pages only (press releases, etc.)Shared line with Disallow: / and Allow: /press/The longer path wins, as usual in robots.txt. Only /press/ is marked as allowed
Stay out of AI search answersOpting out of training isn't enough. Google: the Search generative AI control or nosnippet; others: their search crawlers (OAI-SearchBot, etc.)Blocking a search crawler also stops citations from that AI search
Keep AI crawlers awayDisallow each company's crawler name (the shared line isn't a crawl directive)With the shared line alone, crawlers keep coming. Check WAF/CDN blocks separately

The draft says the preference that applies to a page is the one in effect when the page was retrieved. It works from retrievals after you add it; nothing reaches back to content already retrieved. It also allows private agreements to override these preferences.

Measured: How This Site's robots.txt Reads

To see where your site stands, search robots.txt for the shared line and Google-Extended with the command below. No output means no preference expressed, and Google-Extended follows your "User-agent: *" group.

curl -s https://example.com/robots.txt | grep -inE -A3 'user-agent: *(__usage_ai-training|google-extended)'

On November 2, 2026, we read the robots.txt of this site and of a web-developer media site we also run, using the draft's rules ("*" doesn't count; the longer path wins).

SiteShared lineGoogle-ExtendedCall
This site (Direbase)Not set (no preference)No dedicated group; the "User-agent: *" group applies and allows public pagesTraining and citations both allowed. Nothing changes when Google adds support in 2027
A web-developer media site we also runNot set (no preference)Google-Extended explicitly set to Allow: /Even with the shared line added, the explicit Google-Extended rule takes precedence, keeping Google citations

Neither site opts out. Both are growing AI referrals as an entry point, so our call is to keep allowing training and citations. The media site in particular names Google-Extended explicitly, so even if someone later adds a blanket opt-out with the shared line, Google citations stay. The explicit line acts as a guard against an unintended blanket opt-out.

Conversely, a site that wants to opt out but explicitly allows Google-Extended won't change anything for Google by adding the shared line. Before adding it, check it doesn't conflict with your existing per-company rules. Since November 2, 2026, Direbase's AIO Readiness Check shows whether the shared line is set (against / in favor / no preference) in its robots.txt AI crawler item. It isn't scored.

Common Mistakes

  • Disallowing everything under "User-agent: *". That isn't a training preference, and it blocks Googlebot too, removing you from Search
  • Assuming the shared line already works. Google plans support for early 2027; for providers you want honoring it now, add their own tokens too
  • Thinking blocking Google-Extended takes you out of AI Overviews. Google-Extended doesn't affect Search or AI Overviews
  • Expecting the shared line to stop crawlers. The draft states it isn't a crawl directive
  • Mixing up GPTBot and OAI-SearchBot. GPTBot is for training; OAI-SearchBot is for ChatGPT search. Blocking the search one removes you from ChatGPT search results

For robots.txt in general and how Disallow works, see how to write robots.txt.

Related Tools

Sources (checked November 2, 2026)

FAQ

What do I put in robots.txt to opt out of AI training?▾
Write "User-agent: __usage_ai-training" followed by "Disallow: /". That states a preference against using the whole site for training. To allow part of it, add a path such as "Allow: /press/". Google plans to support this in early 2027, so for anything you want honored now, also add per-company tokens like Google-Extended and GPTBot.
Will opting out of training remove me from Google Search or AI Overviews?▾
No. Google states Google-Extended doesn't affect inclusion or ranking in Search. Google says it will treat the shared line as if you had disallowed Google-Extended, so Search is unaffected the same way. AI Overviews and AI Mode are part of Search and follow your regular Googlebot rules.
What happens to citations in Gemini?▾
They may stop. Google-Extended controls not only Gemini training but also grounding — using Search content in answers in Gemini Apps and elsewhere. If you opt out with the shared line and don't mention Google-Extended, Google treats it as a Google-Extended disallow. To keep Gemini citations, add Google-Extended with "Allow: /".
If I Disallow everything under "User-agent: *", have I opted out of training?▾
No. The draft says a "User-agent: *" group must not be read as matching the shared token. Blocking everything under "*" also blocks Googlebot and drops you from Search. State the training preference with the __usage_ai-training name.
Does it remove data that was already used for training?▾
The draft says the preference that applies to a page is the one in the robots.txt in effect when the page was retrieved. It works from retrievals after you add it; there's no rule that reaches back to content already retrieved.
If both the shared line and Google-Extended or GPTBot rules exist, which wins?▾
The draft says specific expressions should take precedence over general ones, and Google follows Google-Extended when it's explicitly specified. So opting out with the shared line while allowing only Google-Extended means "Google may use it, others may not."

Check AI Crawler Access and Your Training Preference Together

Enter a URL to see whether AI search crawlers are blocked in robots.txt or by a WAF, and whether the shared line opts you out of training — all at once.

Run the AIO Readiness Check
今井政和

Written by

今井政和

SEO Director / Frontend Developer

SEO Director with 20+ years of web industry experience. Creator of Direbase and the official WordPress plugin "ORECTIC SEO CHECK." Author of a book on web strategy inspired by Edo-era merchant principles.

@imai_director