Sub topic 11
Expressing usage preferences: Content Signals and IETF AI preferences
This chapter assumes you know how robots.txt groups work (a User-agent line followed by rules) and the difference between advisory and enforced controls. Both ideas came up earlier in this tutorial.
The problem these proposals address
robots.txt answers one question: may this crawler fetch this URL? That question no longer covers what site owners want to say. One company's crawler may fetch a page for three different reasons:
- To add it to a search index that sends visitors back to you.
- To quote it in a generated answer to a user's question.
- To include it in a training dataset for a model.
An owner may accept the first, want the second only with attribution, and refuse the third. Blocking by user-agent token partly works. It fails when one token covers several purposes, or when the company sends several bots and you cannot tell which one does what.
Usage-preference proposals take a different approach. They let you separate access from use. You allow the fetch, then state what the fetched content may be used for. Two efforts matter here: Cloudflare's Content Signals Policy, and the IETF AI Preferences working group (called aipref).
Content Signals
Cloudflare introduced Content Signals in 2025. It is an extension to robots.txt: one new directive, Content-Signal, that carries a list of name=value pairs. The values are yes or no. There are three signal names:
| Signal | Meaning |
|---|---|
| `search` | Building a search index and returning links and short excerpts. It does not cover AI-generated summaries. |
| `ai-input` | Using content as input to an AI system at answer time, such as retrieval-augmented generation, grounding, or generative search answers. |
| `ai-train` | Training or fine-tuning AI models. |
Here is a robots.txt that uses them:
# Content Signals: yes = allowed, no = not allowed, omitted = no preference
User-agent: *
Content-Signal: search=yes, ai-input=no, ai-train=no
Allow: /
Sitemap: https://example.com/sitemap.xmlThree rules govern how to read this:
- A signal you leave out expresses no preference. It does not mean
yesorno. Cloudflare's managedrobots.txthas usedsearch=yes, ai-train=noand said nothing aboutai-input, which leaves that question open. - The directive sits inside a
User-agentgroup, so you can set different preferences for different crawlers. - The signals are separate from
AllowandDisallow. A page can be fetchable and still carryai-train=no.
Reading signals programmatically
Parsers that follow the Robots Exclusion Protocol (RFC 9309) must ignore lines they do not recognize. A Content-Signal line therefore does not break old crawlers. It also means standard tools will not show you the signals. This script groups the lines itself so you can check what a file says:
def parse_signals(text):
groups = []
agents, signals, last_was_agent = [], {}, False
for raw in text.splitlines():
line = raw.split("#", 1)[0].strip()
if ":" not in line:
continue
key, value = (part.strip() for part in line.split(":", 1))
key = key.lower()
if key == "user-agent":
if not last_was_agent and (agents or signals):
groups.append((agents, signals))
agents, signals = [], {}
agents.append(value)
last_was_agent = True
continue
last_was_agent = False
if key == "content-signal":
for pair in value.split(","):
name, _, setting = pair.partition("=")
signals[name.strip().lower()] = setting.strip().lower()
if agents or signals:
groups.append((agents, signals))
return groups
robots = """User-agent: *
Content-Signal: search=yes, ai-train=no
Allow: /
"""
for agents, signals in parse_signals(robots):
for name in ("search", "ai-input", "ai-train"):
print(agents, name, signals.get(name, "unspecified"))The output shows search yes, ai-input unspecified and ai-train no. The unspecified result for ai-input is deliberate. Code that treats a missing signal as permission or as refusal is a bug.
What Content Signals can and cannot do
Content Signals are a vocabulary and a place to put it. Nothing in the format makes a crawler obey it. Cloudflare says the signals are a statement of preference, and that the statement may have legal weight in some jurisdictions. A crawler that ignores them breaks no technical rule.
The proposal gains reach because Cloudflare added the line to the managed robots.txt of a very large number of sites. That means many sites now publish the signals. It does not mean many crawlers read them. Publishing and honoring are separate questions, and your server logs can only answer the first part of the second (see the chapter on logs).
The IETF AI preferences work
The IETF is the standards body behind HTTP and RFC 9309. Its AI Preferences working group (aipref) is building a shared vocabulary for AI usage preferences. It also defines how to attach those preferences to content. The aim is for the vocabulary to be one that all crawlers and publishers use.
At the time of writing, the working group's documents are Internet-Drafts. Drafts are unfinished and can change in name, syntax and scope, or be dropped. Check the current drafts before you copy any syntax into production. The structure of the work is stable enough to describe:
- A vocabulary document defines the usage categories. The drafts have used categories such as automated processing, AI training (with a narrower generative AI training category), and search.
- An attachment document defines how to express preferences. The drafts use two routes. One is a
Content-Usageline inrobots.txt. The other is aContent-UsageHTTP response header.
A preference attached to a response looks like this:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Usage: train-ai=nThe header form matters because robots.txt works per host and per path pattern, while a header can differ for each response. A site could, for example, permit training on public documentation and forbid it on user-generated pages.
Comparing the two efforts
| Question | Content Signals | IETF `aipref` drafts |
|---|---|---|
| Who defines it | One company, Cloudflare | An open standards working group |
| Where it goes | `robots.txt` | `robots.txt` and an HTTP header |
| Vocabulary | `search`, `ai-input`, `ai-train` | Categories defined in the vocabulary draft, such as AI training and search |
| Status | Published and deployed | Drafts, subject to change |
| Enforcement | None | None |
The two share a design. Both express usage categories, both use robots.txt, and both are advisory. If the IETF vocabulary is finished and crawlers adopt it, you would expect the Content Signals names to give way to it or map onto it. Until then, you may need to publish both.
Common errors
- Treating a signal as a block.
ai-train=nodoes not stop a fetch. If you must stop a crawler, use an enforced control. - Reading silence as consent or refusal. An omitted signal says nothing. Decide what you want for each category and state it.
- Mixing up the two layers.
Disallowcontrols fetching. A usage preference controls use after fetching. If youDisallowa path, a compliant crawler never sees the page, so a preference on that page has no effect. - Copying unstable syntax. Draft names such as
train-aican change. Pin the draft version you followed in a comment, and recheck it. - Expecting a ranking effect. None of these signals is documented as a ranking or citation boost. They restrict use. They do not promote it.
Practical guidance
Publishing signals costs almost nothing, and a compliant crawler can use them, so adding them is reasonable for most sites. Work through these steps:
- Decide your position on each category (search, answer-time use, training) separately.
- Write those choices into the
robots.txtgroup for*, then add per-crawler groups where a particular company needs different treatment. - Add a
Content-Usageheader only for content where per-response control is useful, and mark the draft version in your configuration notes. - Keep access rules (
Allow,Disallow) consistent with your preferences. Disallowing a search crawler while statingsearch=yessends mixed messages. - Where blocking is a hard requirement, add bot verification, rate limiting or authentication, covered earlier in this tutorial.
Exercise
A site's robots.txt contains "User-agent: *", "Content-Signal: search=yes, ai-train=no" and "Allow: /". A product team asks whether this stops a retrieval-based assistant from quoting the pages in answers. What do you tell them?
Show answer
No. The file says nothing about answer-time use, because ai-input is omitted and an omitted signal expresses no preference. Even if the file said ai-input=no, the signal is advisory and only a crawler that honors it would comply. To prevent answer-time use, state ai-input=no for the relevant crawlers and, if it must hold, add enforcement such as bot verification, WAF rules or authentication.
Exercise
Why would a site use an HTTP Content-Usage header in addition to robots.txt rules?
Show answer
robots.txt applies by host and path pattern, while a header is set on each response. The header lets one site give different usage preferences to different pages or content types, for example allowing training on public documentation and refusing it on user-generated pages. Because the syntax comes from IETF drafts that can still change, check the current draft before relying on it.