Blog

robots.txt, llms.txt and what AI agents see on your site

A website is now read by three kinds of machine: the search crawlers it always was, crawlers collecting text to train models, and agents fetching a page because a person just asked a question about it. A handful of files and headers decide what each of them can see.

There is a lot of advice about those files, and much of it is selling something. This is what the vendors' own documentation says as of November 2026, with this site's files as the worked example.

Three purposes, one file

Every major AI vendor now splits its crawlers by purpose, and the split is the most useful thing to understand about robots.txt today.

  • Training. GPTBot, ClaudeBot, meta-externalagent, and two tokens that aren't crawlers at all, only switches: Google-Extended and Applebot-Extended. Cloudflare's managed file also blocks CCBot, the crawler behind Common Crawl's open archive, with the AI crawlers.
  • Search index. OAI-SearchBot, Claude-SearchBot, PerplexityBot, and the ordinary search crawlers: AI Overviews follow Googlebot's rules, and Microsoft sets Copilot's grounding preferences under the Bingbot name.
  • Fetching for a user. ChatGPT-User, Claude-User, Perplexity-User.

Because they are separate, you can opt out of training without disappearing from answers. OpenAI's documentation is explicit: a site opted out of OAI-SearchBot won't be shown in ChatGPT search answers, though it can still appear as a navigational link, while disallowing GPTBot only says the content shouldn't be used for training. Anthropic draws the same line between Claude-SearchBot and ClaudeBot.

The third group is where robots.txt runs out. OpenAI says that because ChatGPT-User requests are started by a person, robots.txt rules may not apply. Perplexity says Perplexity-User generally ignores them, and Google says the same of its user-triggered fetchers. Anthropic is the exception: its bots, Claude-User included, honour robots.txt, and it says disabling Claude-User stops Claude retrieving your pages for a user's question. So don't think of the file as a way to stop a page being read when someone asks an assistant to read it. It is a set of instructions to crawlers, and the well-behaved ones follow them.

This site's file

Without its comments, it is this:

User-agent: *
Allow: /

User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

Sitemap: https://roboparker.com/sitemap.xml

The second group is redundant, since the first already allows everything. It is there so the intent is unambiguous to the next person who edits the file, including me. Being cited by assistants is part of how a freelancer gets found, and a test in the suite fails if any of those three names is removed or a Disallow: / appears.

If you want the common alternative, search yes and training no, it looks like this:

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: CCBot
Disallow: /

User-agent: __usage_ai-training
Disallow: /

User-agent: *
Allow: /

The second group is new. On 30 October 2026 Google, Microsoft and Anthropic each announced support for a shared training opt-out, based on work in the IETF's AIPREF group, so that a site doesn't have to list every vendor. Anthropic says it has begun recognizing it, and that a rule naming ClaudeBot still takes priority. Microsoft will honour it from 1 February 2027, and Google says it intends to in early 2027. It is an individual Internet-Draft, not a standard, and the draft says a User-agent: * group must not be read as matching it. Add it alongside the named tokens. Don't replace them with it yet. Microsoft also added page-level training and grounding preferences for Bingbot, set in a meta tag or an X-Robots-Tag header.

Google is a special case

Google-Extended does not control AI Overviews. It governs training and grounding for Gemini, and Google states it has no effect on inclusion or ranking in Search.

AI Overviews and AI Mode are part of Search, so they follow Search's controls: whether Googlebot can crawl the page, and the snippet controls nosnippet, data-nosnippet, max-snippet and noindex. Since the end of August 2026 every site also has a per-property setting in Search Console, the Search generative AI control, that includes or excludes it from those features and from generative AI features in Discover. Google says it is not a ranking signal and does not affect training.

So the three questions have three different switches: training is Google-Extended, AI answers in Search is the Search Console control or the snippet rules, and being in Search at all is Googlebot.

The mistakes

Blocking search when you meant training. Most "block AI bots" lists mix the two groups. Copying one removes you from the answers people are increasingly getting instead of ten links.

Not knowing what your CDN is doing. Cloudflare can manage robots.txt for you, prepending rules for AI crawlers to your own file, and can block AI training crawlers at the edge whatever your file says. If your origin serves no file, it can create one. Fetch your own /robots.txt from outside your network and read what is actually served.

Using Disallow to hide a page. Disallow stops crawling, not indexing, and a crawler that can't fetch a page can't see a noindex on it either. On this site the unlisted pages carry a noindex meta tag, which travels with the page and so can't drift out of step with the code that decides what is listed. Static files that no template renders get an X-Robots-Tag: noindex header from the web server.

Using it for anything secret. The file is public, and RFC 9309 says its rules are not a form of access authorization. It is a list of the paths you would rather nobody looked at.

Blocking by IP address. Anthropic's documentation warns that blocking its IP addresses impedes its ability to read your robots.txt and may not guarantee an opt-out.

Trusting a stale list. The vendors' lists grow and change. Take the names from each vendor's own page, and that includes the names in this post.

llms.txt

llms.txt is a proposal from 2024: a Markdown file with a title, a one-paragraph summary and sections of annotated links, meant as a map for language models. It usually sits at the root of a site, though the proposal also allows one at any path. It is not a standard, and it describes itself as a proposal.

The evidence on whether anything reads it is not encouraging. Google's guidance for generative AI in Search says you don't need AI text files like llms.txt, and that Search ignores them. Ahrefs looked at about 137,000 domains in May 2026 and found that 97% of the llms.txt files it saw received no requests at all. Of the requests that did arrive, the largest group came from SEO audit tools, and AI search and retrieval bots barely registered.

Where it does earn its place is on documentation sites, which the proposal itself says is where it is used most heavily. Docs pages from Claude Code, OpenAI and Perplexity each point an agent at the site's llms.txt index. That is the realistic use: a table of contents for a tool that is already on your site and wants to find the right page.

This site has one. It is rendered from the same data as the sitemap and the navigation, so a new service page or post appears in it without anyone remembering to edit it, and a test checks that every service is listed. That is the only way I'd have one: generated, free to keep, and with no ranking expected from it.

  • Do generate it from the source of truth, and link to it from somewhere an agent will see.
  • Don't hand-maintain it. A stale map is worse than none.
  • Don't put access rules in it. A Common Crawl analysis found sites "denying" its crawler in llms.txt while allowing it in robots.txt, which denies nothing.
  • Don't build a parallel set of Markdown pages for bots on its account. The proposal suggests them, but Google says you don't need Markdown to appear in Search, and serving bots different content from visitors has never ended well.

What agents actually see

Most AI crawlers don't run JavaScript. The best public evidence is still a Vercel and MERJ study from December 2024, which found that GPTBot, ClaudeBot and PerplexityBot fetch pages without executing scripts. Googlebot renders pages with an evergreen Chromium, and Apple says Applebot may render them in a browser. That study is two years old, so don't take it on trust.

The practical test takes ten seconds: fetch your page with curl and read the HTML. If the content isn't in it, it isn't there for most of these bots either. Server-rendered pages, real links and real headings are what make a site legible, to people on slow connections and to machines alike.

Two smaller points. Google says structured data is not required for its generative AI features and that there is no special schema for them. Keep it for rich results, and keep it matching the visible text. And Bing has said an accurate lastmod in the sitemap matters to its AI-powered search, while changefreq and priority are ignored.

Signals that don't do much yet

There is a growing pile of ways to state a preference: Cloudflare's Content-Signal line, the RSL License: line, and the IETF's draft Content-Usage header and robots.txt rule. None of the crawler pages from OpenAI, Anthropic, Perplexity or Google cited below mentions any of them. Stating a preference is cheap. Just don't mistake any of them for a control. Today the things that change behaviour are the named robots.txt tokens, the snippet controls and, starting now, the shared training token.

Files for agents that act

A second set of files is aimed at agents that do things, not ones that read: MCP server cards, A2A agent cards, OpenAPI documents, and WebMCP in the browser. The rule is simple. Publish the file if you have the thing it describes, and not otherwise. A content site needs none of them.

If you do want assistants to work with your application's data and actions, not just read about it, that is a real project with its own security design. It is what I build as MCP server development.

The short version

  • Decide separately about training, search and user fetches, and write robots.txt to match.
  • Name the search bots you want. Check that your CDN agrees.
  • Use noindex, not Disallow, to keep a page out of results.
  • Control AI Overviews through Search's own settings, not Google-Extended.
  • Render on the server anything you want cited.
  • Generate llms.txt if it's free. Don't expect traffic from it.
  • Ignore any file that no crawler has committed to reading.

Sources