Robots.txt for AI Crawlers: Why Your Site Is Invisible in ChatGPT & Perplexity (2026 Fix)

Robots.txt for AI Crawlers

Your best article will never earn a citation in ChatGPT, Perplexity, Claude, or Google’s AI Overviews if an AI search crawler gets stopped at the root of your domain.

For more than two decades, managing robots.txt meant giving simple traffic directions to Googlebot and Bingbot. That era is over. Today, a single plain-text file sitting at [yourdomain.com/robots.txt](https://yourdomain.com/robots.txt) decides whether generative answer engines recommend your business or pretend you do not exist. Worse, many website owners and several major CDNs by default accidentally block the exact live retrieval bots that send AI referral traffic while leaving sensitive folders wide open to model-training scrapers.

If you are building out a Generative Engine Optimization strategy, cleaning up your crawler directives is the single highest-leverage technical fix you can make in under 30 minutes.

Why Treating All AI Bots the Same Hurts Your Traffic

Why Treating All AI Bots the Same Hurts Your Traffic

Traditional search engines crawl your pages, store them in an index, and show ten blue links. Generative AI engines split their workload across completely separate fleets of bots. One fleet harvests text across the web to train future foundation models, while a separate fleet fetches live web pages to answer a user’s question right now and link back to the source.

When you treat “AI crawlers” as a single threat and apply a blanket Disallow: /, you erase your brand from live AI citations and referral clicks. Understanding how live retrieval differs from classic ranking signals is central to balancing GEO vs. SEO in AI search.

The 3 Types of AI Crawlers Visiting Your Site

Before editing your file, group AI user-agents by what they actually do with your content:

  1. Live Search & Citation Crawlers (Allow for Visibility): These bots index and fetch pages so AI platforms can cite and link to your website in real-time answers. Blocking them guarantees invisibility in AI search results.

  2. On-Demand User Fetchers (Allow for Live Summaries): When a real person pastes your URL into ChatGPT or asks Claude to summarize your guide, an agent visits your page on their behalf. Most providers note that user-initiated fetches behave like a browser visit and may bypass standard robots.txt rules.

  3. Foundation Model Training Scrapers (Your Choice): These crawlers gather bulk data to train future Large Language Models. Blocking them protects your original research and intellectual property from uncompensated training without removing your pages from live AI search citations.

Complete AI Crawler Directory: Who to Allow vs. Block

Complete AI Crawler

AI vendors update their crawler names regularly. Relying on retired tokens (like Claude-Web or anthropic-ai) leaves your directives useless against active bots. Use this reference table to map out your permissions accurately:

AI Platform / Vendor Live Search & Citation Bot (Allow) User-Triggered Fetcher (Allow) Model Training Crawler (Optional Block)
OpenAI (ChatGPT) OAI-SearchBot ChatGPT-User GPTBot
Anthropic (Claude) Claude-SearchBot Claude-User ClaudeBot
Perplexity PerplexityBot Perplexity-User Uses no separate training crawler
Google (AI Overviews / Gemini) Googlebot Handled via Google infrastructure Google-Extended (Control token)
Apple (Apple Intelligence) Applebot Handled via Apple infrastructure Applebot-Extended (Control token)
Meta AI Meta-ExternalFetcher Meta-ExternalFetcher Meta-ExternalAgent
Common Crawl (Open Datasets) N/A N/A CCBot

Important Note on Google: Google-Extended is not a separate web crawler; it is a policy control token applied to content already crawled by Googlebot. Disallowing Google-Extended opts your website out of Gemini foundation model training, not out of Google Search rankings or AI Overviews. To see how Google selects cited links, read our Google AI Overviews strategy guide.

The Hidden robots.txt Mistake That Exposes Private Folders

Under the official Robots Exclusion Protocol (RFC 9309), a crawler follows only the single most specific User-agent block matching its name. The moment you create a dedicated rule group for an AI bot, that bot completely ignores everything inside your User-agent: * block.

Look at what happens when a site owner writes this:

Plaintext

User-agent: *
Disallow: /wp-admin/
Disallow: /checkout/
Disallow: /private-client-portal/

User-agent: OAI-SearchBot
Allow: /

Because OAI-SearchBot matched its own dedicated rule group, it skips the wildcard section entirely. You just accidentally invited OpenAI to crawl /checkout/ and /private-client-portal/.

How to fix it: Stack all allowed search and citation user-agents directly on top of a single shared rule block. That way, every allowed crawler inherits your exact Disallow protections.

3 Copy-Paste robots.txt Templates You Can Publish Today

Pick the configuration that matches how you monetize your website. Copy the snippet, paste it into your root robots.txt file, and replace yourdomain.com with your actual domain.

1. Best for Most Businesses: Allow AI Search Citations, Block Model Training

This balanced setup lets ChatGPT, Perplexity, Claude, and Google cite and link to your content in live answers while preventing your proprietary articles from being absorbed into future training datasets.

Plaintext

# Standard Search & Live AI Citation Crawlers (Allowed)
User-agent: Googlebot
User-agent: Bingbot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Meta-ExternalFetcher
Allow: /
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/

# Foundation Model Training Crawlers (Blocked)
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
User-agent: Bytespider
Disallow: /

# Catch-All Rule for Other Crawlers
User-agent: *
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /checkout/
Disallow: /my-account/

Sitemap: https://yourdomain.com/sitemap_index.xml

2. Best for Blogs, SaaS & Media: Maximum AI Reach Everywhere

If your primary goal is brand awareness across every AI assistant and you want zero friction across both model training and live search retrieval use this stacked structure:

Plaintext

User-agent: *
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Google-Extended
Allow: /
Disallow: /wp-admin/
Disallow: /private/
Disallow: /search/

Sitemap: https://yourdomain.com/sitemap_index.xml

3. Best for Paywalled Research & Proprietary Databases: Strict IP Protection

If you sell paid industry reports, courses, or exclusive datasets, block all automated AI scrapers while keeping traditional search engines active:

Plaintext

User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: Meta-ExternalAgent
User-agent: CCBot
User-agent: Bytespider
Disallow: /

User-agent: *
Disallow: /wp-admin/
Disallow: /members-only/

Sitemap: https://yourdomain.com/sitemap_index.xml

(Keep in mind: robots.txt is a voluntary standard for compliant bots, not a security wall. Sensitive customer data or paid content must always sit behind server-side login authentication.)

How to Run a 5-Step GEO Crawler Audit

Editing robots.txt is only half the job. Many AI visibility failures happen at the server or CDN layer even when your text file looks spotless. Follow these five checks alongside our complete technical SEO for AI search guide to verify that bots can actually read your pages:

  1. Inspect Your CDN and Firewall Settings: Platforms like Cloudflare, Akamai, and Fastly include one-click “Block AI Bots” toggles (and Cloudflare also supports Content-Signal headers). If your Web Application Firewall blocks AI user-agents at the edge, OAI-SearchBot and PerplexityBot will receive 403 Forbidden errors before they ever reach your robots.txt file. Open your security dashboard and make sure live search bots are permitted.

  2. Test Raw HTML Without JavaScript: Unlike Googlebot, most AI crawlers do not render client-side JavaScript. If your site relies on heavy React or Vue hydration, AI bots may see an empty shell. Run curl -A "OAI-SearchBot" https://yourdomain.com in your terminal to confirm your headings and body text appear cleanly in the raw HTML.

  3. Audit Every Subdomain Separately: Rules on yourdomain.com/robots.txt do not apply to blog.yourdomain.com or docs.yourdomain.com. Each subdomain requires its own root file.

  4. Verify Real Visits in Server Access Logs: Check your raw server logs for user-agent strings like OAI-SearchBot, PerplexityBot, and Claude-SearchBot. Look for 200 OK status codes rather than 403 blocks or long redirect chains. Pair this check with Bing Webmaster Tools AI citation data and Google Search Console AI click data to track actual referral clicks.

  5. Support Crawlers With Clean Sitemaps and Structure: Crawler access is the starting line, not the finish line. Keep your XML sitemaps updated, avoid slow redirect chains (301 -> 302 -> 200 hops cause real-time answer bots to time out and skip your page), and learn what llms.txt is if you maintain technical documentation. You can also benchmark your brand mentions using dedicated AI visibility tools.

Frequently Asked Questions

Does blocking GPTBot stop my website from showing up in ChatGPT Search?

No. OpenAI separates model training from live web search. Blocking GPTBot prevents OpenAI from using your content to train future models, while allowing OAI-SearchBot keeps your website eligible to appear as a cited source in ChatGPT Search.

Should I prioritize robots.txt or llms.txt?

Always configure robots.txt first. Every major AI crawler checks robots.txt before requesting a page, whereas llms.txt is an optional markdown index mostly used by developer coding assistants rather than mainstream AI search engines.

How fast do AI crawlers pick up changes to robots.txt?

Compliant crawlers typically cache robots.txt files for up to 24 hours. After publishing your updated file (confirm it loads at yourdomain.com/robots.txt with a 200 OK status and stays under 500 KiB), expect AI bots to follow your new rules within 24 to 48 hours. For official syntax rules, refer to Google’s robots.txt documentation and OpenAI’s crawler overview.

Why isn’t Perplexity or ChatGPT citing my site even after I allowed their bots?

Opening your robots.txt removes the technical barrier, not the editorial filter. AI answer engines favor pages with direct, well-structured answers, clean HTML, strong E-E-A-T signals, and external brand mentions. Once your crawler access is verified, focus on learning how to optimize your website for ChatGPT and Perplexity.

SURBHI THAPA

SURBHI THAPA

Surbhi Thapa is an SEO specialist focused on SEO strategy and content optimization.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top