IndexHot
← Back to Blog

robots.txt for AI Crawlers: Two Switches, Not One

By IndexHot Team ·

Most robots.txt files in the wild were written for one crawler and inherited by a dozen others. That inheritance is where visibility disappears: a rule meant to keep content out of model training also keeps it out of the answers your buyers read.

The distinction that gets missed

Crawling for training and crawling for retrieval are separate operations with separate user agents, and on most vendors they are controlled separately. Blocking the training crawler is a licensing decision. Blocking the retrieval crawler is a visibility decision. Sites routinely make the first and accidentally make the second.

The practical consequence: a robots.txt that disallows the training agent by name is fine, as long as the retrieval agent is allowed explicitly or by default. A file that disallows everything and then allowlists one search crawler has silently excluded every assistant.

Vendor documentation changes. Treat any agent table, including this one, as a starting point to verify against the current published list rather than as a permanent fact.

How to write it so it can be read

  1. One group per agent, with an explicit user agent line. Wildcard groups apply to everything you did not name, which is rarely what a site intends.
  2. State the retrieval agents you want, explicitly. Reliance on the wildcard means a future default change silently changes your exposure.
  3. Keep disallow rules at directory level. Per-URL exceptions multiply and become unmaintainable within a quarter.
  4. Reference the sitemap at the end, and make sure the URL is absolute.

Verification is a fetchers' exercise, not a reading exercise: fetch robots.txt as each named agent would see it, then fetch a key page with that agent's user agent string and confirm a 200 rather than a 403.

Four misconfigurations worth checking today

  • Blanket disallow for all agents on a staging copy that was promoted to production.
  • A CDN or WAF rule that blocks non-browser user agents while robots.txt permits them. The file says yes and the edge says no.
  • Disallow on query parameters that also catches pagination, so deep pages become unreachable.
  • A disallow on the directory that contains the pages you most want cited, added during a redesign and never removed.

What robots.txt cannot do

It cannot make a page citable, cannot grant permission for content you do not own, and cannot stop a system that ignores it. It is a request, honoured by the well-behaved. For licensing questions the durable instrument is a contract or a licence, not a text file.

A note on the politics

Whether to allow training is a business decision about the value of your content, and publishers in particular have legitimate reasons to say no. The only error is making that decision without noticing it also decides whether you appear in answers, which is a different audience with a different value.

Keep reading

Glossary terms behind this

See where your brand shows up in AI answers

A free check across the four standard surfaces, with the coding rules stated so you can reproduce it.

Run the free check