AI Crawlers and robots.txt: Designing an Intentional Access Policy
Understand how search, retrieval, and training bots declare themselves in robots.txt and how to configure clear allow/disallow rules.
Search retrieval vs. model training bots
Modern AI platforms separate their crawlers into distinct user-agent tokens so site owners can choose different policies for live answer retrieval / search indexing versus offline model training.
Blocking every unknown bot indiscriminately often hides public documentation from AI search answers, while leaving everything open without review may expose private or low-value URLs.
Writing clear robots.txt directives
Keep /robots.txt valid, fast, and explicit about your canonical Sitemap:
User-agent: *
Allow: /
Disallow: /api/
Disallow: /admin/
# Example: explicitly allow retrieval bots while disallowing a training crawler
User-agent: OAI-SearchBot
Allow: /
User-agent: GPTBot
Disallow: /
Sitemap: https://example.org/sitemap.xml
Five practical rules to check
- Serve a real
200or404on/robots.txt: Returning5xxor blocking/robots.txtbehind a bot challenge causes compliant crawlers to treat the entire site as disallowed. - Avoid accidental
Disallow: /on production: Staging configs frequently leak into production deploys; always verify your liverobots.txtafter every release. - Remember group specificity: In RFC 9309, a bot that matches a named
User-agent:block follows only that block and ignores the wildcard*group. Repeat criticalDisallow:paths (such as/api/or/checkout/) inside named groups if needed. - Match
robots.txtwith page-level meta robots: Allowing a crawler inrobots.txtwhile emitting<meta name="robots" content="noindex">orX-Robots-Tag: noindexcreates conflicting instructions. - Verify WAF / CDN rules: Even with a permissive
robots.txt, aggressive CDN challenges can return403or429to legitimate retrieval bots.
Inspect per-crawler visibility
GEOReady evaluates /robots.txt syntax (F02) alongside individual AI crawler verdicts (G01–G06) so you can confirm whether your live policy matches your intent.
Check your live site against these rules
Run a free rule-based readiness check to inspect your real HTTP responses, robots.txt verdicts, llms.txt structure, and JSON-LD evidence.