Saying yes or no to AI
Part 3 · What it means for a site4 minrobots.txt, names for each bot, and the newer signals for training and search. See what a site can say, who listens, and what happens when the file breaks.
A file of house rules
Before a well-behaved bot reads a site, it asks for one file: /robots.txt. It holds the site’s rules for bots, in plain text.
Each rule names a bot and the paths it may not visit.
- robots.txt
- A text file at the root of a site, listing which bots may visit which paths. Standardised as RFC 9309.
Why it matters. One small file speaks for the whole site to every bot that asks. Most sites never look at theirs.
Rules by name
Rules are grouped by the bot’s name, its user agent. A group for GPTBot applies to GPTBot; User-agent: * applies to every bot without a group of its own.
A bot that finds its own name follows only that group. Rules written for everyone under * no longer apply to it.
Why it matters. A bot with its own group follows only that group, so a rule left out of it does not apply to that bot.
A request, not a lock
Nothing enforces robots.txt. It is a convention: well-behaved bots read it and comply, because their makers promised to.
A scraper that ignores it gets the page anyway. Stopping that takes a firewall or a bot wall, which comes with its own risks, covered in the next lesson.
Why it matters. robots.txt works for bots that choose to respect it. Keeping out the rest takes something else.
Training and search apart
Vendors use separate names for separate jobs.
OpenAI: GPTBot trains, OAI-SearchBot searches. Anthropic: ClaudeBot and Claude-SearchBot. Google’s AI answers follow the Googlebot rules.
Why it matters. One rule per purpose: a site can stay in AI search while staying out of training.
When a person asks
On-request fetchers come because a person asked, and some vendors say robots.txt may not apply to them. OpenAI says so for ChatGPT-User; Perplexity says Perplexity-User generally ignores it.
Anthropic says the opposite for Claude-User: it honours robots.txt. So one line in robots.txt keeps out one assistant and not the others.
Why it matters. Blocking an on-request fetcher in robots.txt may not keep it out, and blocking it costs answers someone is reading.
Saying how, not only who
Newer signals say what content may be used for, not only who may visit.
The IETF is drafting one, AIPREF: Content-Usage: train-ai=n. ClaudeBot reads its no-training group; Google and Bing plan to in 2027.
- AIPREF
- An IETF draft for saying how AI may use content, in robots.txt or a header.
Why it matters. The newer signals say what content may be used for. Only some are read today, so check before relying on one.
When the file breaks
The rules also say what happens when robots.txt itself fails. A 404 means there are no rules: bots may visit everything.
A 5xx server error, or no answer at all, means the opposite: the site is treated as closed until the file comes back.
Why it matters. A robots.txt that errors can shut the whole site to careful bots. Make sure it answers, quickly.