Answers · AI crawlers
I keep seeing robots.txt examples with lines like Content-Usage: train-ai=n from the IETF AI Preferences (aipref) drafts, and separately a User-agent: __usage_ai-training group that Google and Anthropic say they will honor. How do I write a Content-Usage rule correctly, what do train-ai, ai-use and search mean, and does any AI crawler actually read Content-Usage yet?
Last updated
TL;DR: Content-Usage comes from the IETF aipref working group's draft-ietf-aipref-attach (latest submitted version -05, August 2026; editor's copy dated November 19, 2026). It adds one line to a robots.txt group: Content-Usage:, an optional path, then a preference such as train-ai=n. The labels come from the companion vocabulary draft: train-ai (using content to change a generative AI model's learned parameters), ai-use (feeding content into a generative AI model when the user didn't provide it directly) and search (finding pages and sending people to them with a link, which doesn't cover generating summaries). Each takes y or n. Anything else, a misspelling or an uppercase key counts as unknown, not as no. The rule only covers paths a crawler may fetch. A disallowed path has no usage preference at all, so Disallow and Content-Usage do different jobs. A crawler that matches a named User-agent group ignores the * group, so repeat the line in every group. Neither draft is a standard yet. The vocabulary draft says its text doesn't reflect working group consensus. __usage_ai-training is a separate idea: a User-agent group name, from a different individual draft, that you Disallow. Google's Google-Extended page (November 24, 2026) says Google intends to support it in early 2027, and Anthropic says that since October 30, 2026 it has begun recognizing a no-AI-training signal based on aipref work, with rules naming ClaudeBot taking priority. Neither page mentions Content-Usage. Writing both costs nothing, but keep Disallow and the named bot groups for anything you must stop today.
What should I check, step by step?
1. Keep Allow and Disallow for what crawlers may fetch. Content-Usage only states how fetched content may be used, and says nothing about paths that are disallowed.
- Write one preference per label in lowercase: train-ai=n, ai-use=n or search=y, separated by commas, for example Content-Usage: train-ai=n, search=y.
- Use only y or n. A quoted value, a word like no, a key with capitals or a typo makes that preference unknown, not a refusal.
- Don't repeat a key on one line: the last value wins, and a malformed duplicate can turn the result unknown.
- Add a path when one folder differs, such as Content-Usage: /blog/ train-ai=y. The longest matching path applies, as with Allow and Disallow.
- Put the line in every User-agent group, not just *. A crawler that matches its own group never reads the * group.
- If you also want the signal Google and Anthropic have named, add a User-agent: __usage_ai-training group with Disallow: /, and keep ClaudeBot, GPTBot and other named groups in sync with it.
- Expect a delay: crawlers may cache robots.txt for up to 24 hours, and a change only applies to pages fetched again after the new file was read. Keep dated copies of each robots.txt you publish.
Where does the Content-Usage robots.txt rule come from, and how official is it?
The rule is defined in draft-ietf-aipref-attach, Associating AI Usage Preferences with Content in HTTP, a working group draft of the IETF AI Preferences (aipref) group with editors from Google and Mozilla. The IETF Datatracker lists -05 from August 2026 as the latest submitted version. The working group's editor's copy is dated November 19, 2026 and expires May 23, 2027. It is aimed at the Standards Track and would update RFC 9309, the robots.txt standard, if approved.
- The meanings come from the companion draft-ietf-aipref-vocab, A Vocabulary For Expressing AI Usage Preferences (version -08 on the Datatracker). Its November 19, 2026 editor's copy opens with a note that the document is a working document whose contents do not reflect consensus of the working group, and marks the vocabulary section as not yet having consensus. So the labels and their definitions can still change.
What do the aipref labels train-ai, ai-use and search mean?
train-ai is AI Training: using an asset to modify the learned parameters of a generative AI model. Training models used only for non-generative tasks isn't included, even if the model could generate. ai-use is AI Use: using an asset as input to a generative AI model where the asset is not directly provided by the user, which excludes anything already counted as training. The draft notes an open question about whether a user pasting a URL counts as directly providing it.
- search covers applications whose main purpose is to select assets and direct users to where they are, with a direct link to the original and excerpts only to help judge relevance. It doesn't include generating summaries. Allowing search also allows processing inside the search application, including training models whose outputs are used only for that search, and the search category overrides the other two.
- Each label takes y (allow) or n (disallow). Labels are case sensitive. Unknown labels and parameters are ignored, a missing label is unknown, and a value other than the bare tokens y or n is unknown. If the same key appears twice, the last one applies. When several statements apply, for example a robots.txt line and a header, any disallow wins, then any allow, otherwise unknown.
How do you write Content-Usage lines in robots.txt?
Inside a group, write Content-Usage:, optionally a path starting with /, a space, then the preference, for example Content-Usage: train-ai=n or Content-Usage: /blog/ train-ai=y, search=y. The longest matching path wins, using the same matching as Allow and Disallow, and line order doesn't matter. A # starts a comment. Two rules with the same path and conflicting preferences both apply and the more restrictive one wins, which is the opposite of Allow and Disallow, where a tie allows the fetch.
- The draft's own example has a * group with Allow: /, Disallow: /never/, Content-Usage: train-ai=n and Content-Usage: /ai-ok/ train-ai=y, then a separate ExampleBot group with Allow: / and Content-Usage: train-ai=y. ExampleBot uses only its own group. Every other crawler may fetch everything except /never/ and gets train-ai=n except under /ai-ok/. Paths under /never/ get no preference at all, because they can't be fetched.
- The same draft defines an HTTP response header, Content-Usage: train-ai=n, that states preferences for the content of that one response, which suits files and APIs that robots.txt doesn't describe well. A changed robots.txt isn't retroactive: crawlers can cache it for up to 24 hours, and the new preference only applies once the crawler has read the new file and fetched the page again.
How is Content-Usage different from the __usage_ai-training group Google and Anthropic named?
__usage_ai-training isn't a Content-Usage line. It is a name you put on a User-agent line, with Disallow: / to say no AI training, and it comes from a separate individual draft rather than the attach draft. Google's Google-Extended page, last updated November 24, 2026, says Google intends to support the shared machine-readable training preference signal (with user-agent: __usage_ai-training) in early 2027.
- Anthropic's help article on its crawlers says that as of October 30, 2026 it has begun recognizing a machine-readable signal for whether content may be used to train AI models, following a draft based on the aipref working group's work, rolling out over time. It treats rules naming ClaudeBot as more specific: if robots.txt names ClaudeBot, that rule is followed even when the general setting says otherwise.
- Neither page mentions the Content-Usage rule, so as of November 28, 2026 the documented crawler commitments point at the __usage_ai-training group, and Content-Usage is a signal for the future. You can publish both without conflict. For anything that must stop now, keep named Disallow rules for each crawler, and server or firewall rules for fetchers that ignore robots.txt.
- The vocabulary draft also says that contracts or other arrangements, such as a license you granted, likely apply despite a machine-readable preference unless their terms say otherwise. A Content-Usage line states a preference. It isn't a license or a technical block.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We published a new robots.txt today with Content-Usage: train-ai=n, search=y in every group and a User-agent: __usage_ai-training group with Disallow: /. Record it with a hash of the exact file, so we can show later what our robots.txt said from today.”
{
"tool": "record_action",
"arguments": {
"action_type": "site.robots_txt_published",
"outcome": "success",
"occurred_at": "2026-11-28T17:00:00Z",
"client_event_id": "robots-txt:www:2026-11-28",
"summary": "robots.txt for www site: Content-Usage train-ai=n, search=y added to *, GPTBot, ClaudeBot, Google-Extended and Applebot-Extended groups; new __usage_ai-training group Disallow /; /blog/ train-ai=y; Disallow rules unchanged",
"action_sha256": "<sha256 of the published robots.txt>"
}
}- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside your web server.
- It doesn't read or enforce your robots.txt and doesn't tell crawlers anything. It proves which file you said you published at that time; the hash ties the receipt to the exact bytes.
Rightshold isn't affiliated with the IETF, Google or Anthropic. Draft content is as stated in draft-ietf-aipref-attach (Datatracker -05; editor's copy November 19, 2026) and draft-ietf-aipref-vocab (Datatracker -08; editor's copy November 19, 2026), read November 28, 2026. Both are Internet-Drafts, not standards, and can change or be abandoned. Company commitments are as stated on Google's Google-Extended page (November 24, 2026) and Anthropic's crawler help article, read November 28, 2026. Not legal advice.
What are the sources?
- IETF Datatracker: draft-ietf-aipref-attach, Associating AI Usage Preferences with Content in HTTP
- IETF aipref working group: draft-ietf-aipref-attach editor's copy (November 19, 2026)
- IETF Datatracker: draft-ietf-aipref-vocab, A Vocabulary For Expressing AI Usage Preferences
- IETF aipref working group: draft-ietf-aipref-vocab editor's copy (November 19, 2026)
- Google Crawling Infrastructure: Overview of the Google-Extended token (November 24, 2026)
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
Related
- What is the __usage_ai-training robots.txt line and which AI companies will honor it?
- How to block AI training crawlers in robots.txt without leaving AI search
- Which Anthropic crawlers can you block, and does a ClaudeBot rule override the no-AI-training signal?
- How do you block all bots in robots.txt and allow only the ones you choose?
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
