robots.txt for the AI Era: A Strategic Guide
For most of its thirty-year life, robots.txt was plumbing — a file you configured once to keep crawlers out of your cart pages and never thought about again. That era is over. The same file now determines whether ChatGPT, Perplexity, Copilot and Google's generative surfaces are permitted to discover, retrieve and cite your content — or whether your business is structurally invisible in the channel where an estimated 60% of searches already end without a click. This guide covers the standard as it actually works, the strategic framework for AI-bot decisions, and a copy-ready policy for a business that wants to be cited.
The standard: what robots.txt is and is not
The Robots Exclusion Protocol began as an informal convention in 1994 and was finally standardized in 2022 as RFC 9309. Its mechanics are simple: a plain-text file at exactly /robots.txt on each host, containing groups that start with one or more User-agent lines followed by Allow and Disallow path rules. Matching is by longest path; a crawler obeys the most specific group that names it, and falls back to User-agent: * otherwise — a detail that produces the most common AI-era misconfiguration, as we will see.
Two properties define its limits:
- It is voluntary. RFC 9309 standardizes the format, not enforcement. Reputable operators — Google, OpenAI, Anthropic, Microsoft — document compliance; disreputable scrapers ignore the file entirely, and some AI-adjacent crawlers have been credibly accused by CDN vendors and publishers of fetching through undeclared agents. Hard guarantees require authentication or verified-IP firewall rules, not directives.
- It controls crawling, not indexing. A URL blocked in robots.txt can still appear in an index from external links — famously, without a snippet. Keeping a page out of results requires
noindex, which the crawler must be allowed to fetch to see. Blocking and noindexing the same URL is a classic self-contradiction.
The strategic layer: training vs retrieval
As covered in depth in AI Crawlers Explained, AI bots do three different jobs: training collection (GPTBot, Meta-ExternalAgent, CCBot), retrieval indexing (OAI-SearchBot, PerplexityBot, Bingbot, Googlebot), and real-time user-triggered fetching (ChatGPT-User, Claude-User, Perplexity-User). The strategic rule follows directly:
Blocking training bots costs you almost nothing you can measure. Blocking retrieval and fetch bots costs you every citation you would ever have earned from that engine. Sites that blanket-ban "AI" invariably meant to do the first and actually did the second.— ClickRadius Institute analysis
The numbers frame the stakes. Third-party trackers measured AI Overviews on roughly 15% of Google queries in early 2026, with coverage expanding sharply since; position-one organic CTR has fallen from roughly 27% to around 11% by industry measurements as answers displace links. Meanwhile, industry estimates suggest a large majority of brands have zero AI-answer presence. In that environment, a robots.txt that turns away retrieval crawlers is not caution — it is unilateral disarmament in the one channel that is growing.
The Google-Extended trap
The most consequential misunderstanding: Google-Extended is a control token for Gemini training and grounding. According to Google's crawler documentation, blocking it does not remove you from Search or from generative Search features like AI Overviews, which are built on the ordinary Googlebot index. Publishers who blocked Google-Extended expecting to vanish from AI Overviews did not; site owners who feared blocking it would hurt rankings were equally wrong. It is one narrow lever: Gemini-the-model, not Google-the-answer-engine.
The publisher exception
Everything above assumes your content markets a business. If your content is the business — journalism, research, paid databases — the calculus inverts: training bots extract your product wholesale, and even retrieval citation may cannibalize more visits than it creates. Reuters Institute research found that by early 2024 dozens of major news outlets, including roughly half of leading U.S. newspapers studied, had blocked GPTBot. That is a rational licensing-leverage strategy for them, and the wrong template for a plumber, a SaaS company or a law firm to copy.
A copy-ready policy for businesses that want citations
The following reflects the "allow citations, decide on training, exclude junk" posture appropriate for most businesses:
# --- Retrieval & user-triggered fetchers: ALLOW (citation supply chain)
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
User-agent: PerplexityBot
Allow: /
User-agent: Perplexity-User
Allow: /
User-agent: ClaudeBot
Allow: /
User-agent: Claude-User
Allow: /
# --- Training crawlers: YOUR CHOICE (shown allowed; flip to Disallow: / to opt out)
User-agent: GPTBot
Allow: /
User-agent: Google-Extended
Allow: /
User-agent: meta-externalagent
Allow: /
User-agent: CCBot
Allow: /
# --- Aggressive, no-upside crawlers: BLOCK
User-agent: Bytespider
Disallow: /
# --- Everyone else: normal site hygiene only
User-agent: *
Disallow: /cart/
Disallow: /checkout/
Disallow: /admin/
Disallow: /search
Sitemap: https://www.example.com/sitemap.xml
Notes on the pattern:
- Named groups override
*entirely. Under RFC 9309, a crawler that finds its own user-agent group ignores the wildcard group completely. This cuts both ways: yourDisallow: /admin/under*does not apply to GPTBot once GPTBot has its own group — if you give a bot a named group, give it the full rule set you intend. This single quirk explains a large share of real-world misconfigurations. - The most dangerous line on the modern web is
User-agent: * Disallow: /left over from staging. It has always been catastrophic for SEO; it is now equally catastrophic for AI visibility, and no dashboard will alert you that Perplexity stopped coming. - Keep the Sitemap line. Retrieval crawlers use it for discovery exactly as classic engines do.
- Check your CDN's bot settings too. Cloudflare and similar providers now offer one-click "block AI bots" toggles — some enabled by default on new plans — which enforce at the network layer regardless of what your robots.txt says. Your effective policy is the intersection of the two, and we regularly score sites whose robots.txt welcomes bots their CDN is silently turning away with 403s.
Four real-world failure stories (anonymized patterns)
The abstract rules become memorable as failure patterns. These four recur constantly in the sites we scan:
The staging ghost
A site relaunches; the developer copies the staging environment's Disallow: / into production and nobody notices, because rankings decay over weeks rather than collapsing overnight and AI fetchers fail silently from day one. Every audit should begin by reading the live file — not the one in the repository, the one the crawler sees.
The over-specific group
A site owner adds a User-agent: GPTBot group to opt out of training, forgetting that the named group now replaces the * group for GPTBot entirely. Intended effect: block one bot from everything. Common side effect in the reverse direction: a site that adds User-agent: PerplexityBot / Allow: / to "welcome" the bot has also silently released it from the Disallow: /admin/ hygiene rules the wildcard group carried. Named groups must be written as complete policies.
The CDN contradiction
robots.txt welcomes every retrieval bot; the CDN's "block AI scrapers" toggle — enabled by default on the plan the site upgraded to — returns 403s to all of them. The site owner audits the text file, finds it perfect, and concludes AI visibility "just takes time." The only place this contradiction is visible is the CDN's own analytics or the absence of bot hits in origin logs.
The blanket ban with a delay fuse
A publisher blocks everything AI-related during the 2023–2024 backlash, then pivots strategy in 2026 wanting AI citations. The block lifts in a minute; the recovery does not. Retrieval indexes revisit on their own schedules, and months of accumulated absence mean competitors now occupy the citation slots. Access decisions are cheap to make and slow to unmake — which is the strongest argument for making them deliberately the first time.
Auditing what you actually have
A fifteen-minute audit, in order:
- Fetch
yourdomain.com/robots.txtand read it as a crawler would: for each AI bot that matters, which group governs it, and what do that group's rules permit? Remember the named-group override. - Test critical URLs against the file with Google Search Console's robots.txt report or an RFC 9309-compliant parser — not by eyeball. Longest-match rules with mixed Allow/Disallow surprise people reliably.
- Grep your server logs for the bot roster: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-User, PerplexityBot, Bingbot, Googlebot. Verify interesting entries by published IP range — user agents are trivially spoofed. Absence of a bot you allow is itself a finding: it may be blocked upstream at the CDN.
- Reconcile the three layers — robots.txt, CDN/WAF bot rules, and any
X-Robots-Tagheaders or meta robots tags — into one written policy. Contradictions among layers are where sites lose visibility without ever making a decision.
According to Google's own robots.txt introduction, the file exists "primarily to manage crawler traffic" — a framing from an era when crawl budget was the concern. The modern framing is different: this file is now the permissions page of your citation supply chain, and it deserves the same review rigor as anything else that touches revenue.
We have never scored a site that was cited by an engine its robots.txt turned away. The inverse — sites allowing everything and cited by nothing — is common, because access is necessary, not sufficient. But you cannot win a channel you have locked yourself out of.— ClickRadius Institute analysis
Access is step one; being worth retrieving is the rest. Once the door is open, the levers that determine whether engines actually select you are structured data (Schema Markup for AI Citation), content signals, and freshness (IndexNow and Instant AI Indexing).
Frequently asked questions
Will blocking Google-Extended keep me out of AI Overviews?
No. Google-Extended controls whether your content trains and grounds Gemini as a model; Google's generative Search features draw on the ordinary Search index built by Googlebot. Per Google's documentation, blocking Google-Extended does not remove you from Search or from Search's generative features — only blocking Googlebot does, at the cost of leaving Google entirely.
Is robots.txt legally enforceable against AI companies?
robots.txt is a voluntary compliance convention — standardized as RFC 9309 but carrying no enforcement mechanism of its own. Major operators like OpenAI, Anthropic and Google document compliance; some crawlers have been credibly accused of ignoring it. For hard guarantees you need server-level controls — authentication, verified-IP firewall rules, CDN bot management — not robots directives.
Should a small business block AI training crawlers?
Usually no. For a service business, appearing in training data means future models are more likely to know your brand exists — mild upside, negligible downside, since your content is marketing rather than the product itself. Blocking training bots makes most sense for publishers and content businesses whose words are the thing being sold.
Not sure what your robots.txt, CDN and headers are collectively telling AI engines? A free AI Readiness Score from ClickRadius audits your crawl access alongside five other citation-readiness categories — details on the pricing page.