Technical Reference

The Complete robots.txt Setup for AI Crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, and More)

AI crawlers obey robots.txt directives the same way Googlebot does. Get them wrong and your site is invisible to ChatGPT, Claude, and Perplexity. Get them right and you become a citation source. Here is the exact robots.txt every brand targeting AI search visibility should ship.

Works with

12 AI crawlers coveredCopy-paste robots.txt templateCloudflare-specific override guidance

Why robots.txt matters for AI search

AI crawlers - the bots OpenAI, Anthropic, Google, and Perplexity send out to index the web - obey robots.txt directives the same way Googlebot does. If your robots.txt says Disallow: / for GPTBot, GPTBot leaves and your content does not enter OpenAI’s index, retrieval cache, or training corpus.

This is the single most common reason brands targeting AI search visibility have zero ChatGPT citations. The block is rarely intentional - it is usually inherited from default settings on Cloudflare (toggled on for new domains since 2024), WP Engine, or hosting providers that enabled “AI scraper protection” without notifying customers.

The fix is mechanical: audit your robots.txt, replace any AI-crawler Disallow with explicit Allow, and ship a robots.txt that signals “yes, please index, train, and cite us.” For a brand whose growth depends on being recommended by AI search, this is foundational - and free.

The 12 AI crawlers that matter in 2026

Each major AI search engine operates one or more distinct crawlers with different roles - some build training corpora, some perform live retrieval for chat responses, some respect different opt-out rules. To be fully visible across all AI search surfaces, your robots.txt needs to address all twelve.

Bot user-agent Operator Role
GPTBotOpenAITrains future ChatGPT models
OAI-SearchBotOpenAIBuilds ChatGPT search index (live answers)
ChatGPT-UserOpenAIOn-demand fetches inside a user’s ChatGPT session
ClaudeBotAnthropicTrains Claude models and powers Claude search
anthropic-aiAnthropicLegacy crawler still active for some use cases
Claude-UserAnthropicOn-demand fetches inside a Claude session
PerplexityBotPerplexityIndexes the web for Perplexity’s live answer retrieval
Google-ExtendedGoogleOpt-in/out signal for Gemini and Vertex AI training (distinct from Googlebot)
CCBotCommon CrawlOpen dataset that feeds dozens of smaller LLMs and research models
BytespiderByteDanceTrains Doubao and other ByteDance AI products
AmazonbotAmazonFeeds Alexa, Rufus, and Amazon’s AI shopping assistant
meta-externalagentMetaTrains Llama models and powers Meta AI assistant

Two notes on coverage:

  • Applebot-Extended (Apple) trains Apple Intelligence. Some sites add it to their allowlist; others leave it untouched since Apple Intelligence has limited search-style citation behavior in 2026.
  • Smaller LLM operators (Mistral, Cohere, Inflection, xAI/Grok) typically use CCBot data rather than running their own crawlers. Allowing CCBot covers them indirectly.

The copy-paste robots.txt template

This is the robots.txt every brand targeting AI search visibility should ship. Adjust the standard search-engine and admin paths for your stack.

# ===== AI crawlers — explicit allow =====
# Allowing these is what makes your site eligible for ChatGPT,
# Claude, Perplexity, Gemini, and other LLM citations.

User-agent: GPTBot
Allow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: ClaudeBot
Allow: /

User-agent: anthropic-ai
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Google-Extended
Allow: /

User-agent: CCBot
Allow: /

User-agent: Bytespider
Allow: /

User-agent: Amazonbot
Allow: /

User-agent: meta-externalagent
Allow: /

# ===== Standard search engines =====
User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

# ===== Default rule for everything else =====
User-agent: *
Allow: /
Disallow: /wp-admin/
Disallow: /wp-includes/
Disallow: /xmlrpc.php
Disallow: /?s=
Disallow: /search/
Disallow: /cgi-bin/
Allow: /wp-admin/admin-ajax.php

# ===== Sitemap pointer =====
Sitemap: https://yoursite.com/sitemap.xml

Three things to notice about this template:

  • Every AI crawler gets an explicit Allow block. Explicit is better than implicit because it overrides any default Disallow set by upstream tooling (Cloudflare, plugins, hosting providers).
  • The wildcard User-agent: * block covers everything not listed, while still preventing crawlers from wasting budget on /wp-admin/ and search-result pages.
  • The Sitemap: directive points crawlers (including AI crawlers) to your XML sitemap. Many sites omit this; including it accelerates indexing by 2–4 weeks on a new domain.

Cloudflare-specific override (most common blocker)

If your site sits behind Cloudflare and you haven’t actively configured robots.txt, you almost certainly have Cloudflare’s default “AI Scrapers & Crawlers” rule blocking the exact bots you need. Cloudflare started enrolling new domains automatically in this protection in 2024. The intent - protecting publishers from un-compensated AI training scraping - is reasonable; the side effect for any brand targeting AI visibility is catastrophic.

How to check if you’re affected

Visit https://yoursite.com/robots.txt directly. If you see directives blocking GPTBot, ClaudeBot, PerplexityBot, CCBot, or similar - and you didn’t write them yourself - Cloudflare is overriding your origin robots.txt.

How to disable Cloudflare’s AI blocker

  1. Log into your Cloudflare dashboard
  2. Select the airankaudit.com zone (or your domain)
  3. Navigate to Security → Bots
  4. Find the toggle labeled “AI Scrapers & Crawlers” (or similar - Cloudflare renames this occasionally)
  5. Switch it OFF
  6. Save

The change takes effect within 60 seconds. Re-check yoursite.com/robots.txt - the AI-crawler Disallow directives should be gone, replaced by whatever your origin robots.txt says (or the default permissive WordPress robots.txt if you have nothing custom).

Also remove the Content-Signal directive

Cloudflare’s AI protection also emits a Content-Signal: search=yes, ai-train=no header on the default user-agent block. This is a legal opt-out under EU Directive 2019/790 - telling LLM operators “do not use this content for training.”

For a brand whose strategy depends on appearing in AI search, this signal is the opposite of what you want. It is removed automatically when you toggle off the AI Scrapers protection, but worth verifying by inspecting your live robots.txt after the change.

WordPress-specific override

WordPress generates a “virtual” robots.txt at /robots.txt by default. To customize it, you have three options ordered by simplicity:

Option 1: Rank Math or Yoast SEO (recommended)

Both plugins expose robots.txt editing in their settings. Rank Math: General Settings → Edit robots.txt. Yoast: Tools → File editor → robots.txt. Paste the template above, save. Done.

Option 2: WordPress filter (custom code)

If you don’t want a plugin, add this to your theme’s functions.php or a mu-plugin:

add_filter( 'robots_txt', function( $output ) {
    $custom = "User-agent: GPTBot\nAllow: /\n\n";
    $custom .= "User-agent: ClaudeBot\nAllow: /\n\n";
    $custom .= "User-agent: PerplexityBot\nAllow: /\n\n";
    // ...add the rest from the template above
    return $custom . $output;
}, 10, 1 );

Option 3: Physical robots.txt file

Upload a real robots.txt file to your site root via SFTP. WordPress’s virtual robots.txt is only generated if no physical file exists. A real file overrides it. This is the most explicit option but requires file-system access.

How to audit your current robots.txt

The two-minute audit:

  1. Fetch your live robots.txt: curl -A "Mozilla/5.0" https://yoursite.com/robots.txt
  2. Search the output for each AI crawler name from the table above. Look for any Disallow rule applying to any of them.
  3. Test from a real AI crawler perspective: curl -A "GPTBot" https://yoursite.com/. If you get an HTML response, GPTBot can index. If you get 403 or a Cloudflare challenge page, you’re blocked at the network layer too - Cloudflare’s bot fight mode or similar is rejecting AI bots before robots.txt even matters.
  4. Verify with Google’s AI Overviews: search Google for your brand name. If Google’s AI Overview cites your site, Google-Extended is allowed. If it cites every competitor but never your domain, that’s a signal.

Content-Signal and ai.txt: optional next layers

Beyond robots.txt, two newer signals are starting to matter for AI search visibility:

Content-Signal header

The Content-Signal HTTP header (introduced by Cloudflare in 2024) communicates training and search-grounding preferences in a single line. To opt-in:

Content-Signal: search=yes, ai-train=yes, ai-input=yes

Add via your web server config (nginx, Apache) or via Cloudflare Transform Rules. This is a complementary signal to robots.txt, not a replacement.

llms.txt

An emerging convention proposed by Jeremy Howard in 2024: a plain-text file at /llms.txt that summarizes a site’s key content for LLMs. It is not honored by any major LLM at the protocol level as of mid-2026, but the cost to add it is trivial and the optics-of-being-prepared matter when LLM operators evaluate which sites to give preferential treatment to. See the llmstxt.org proposal for the format.

5 mistakes that silently block AI citations

1. Trusting WordPress’s default robots.txt. WordPress’s virtual robots.txt is minimal - it only handles wp-admin paths. It does not explicitly allow AI crawlers. If anything upstream (Cloudflare, hosting provider, security plugin) sets a contradictory rule, the WP default does not override it.

2. Blocking by IP at the firewall level. Even if your robots.txt allows AI crawlers, blocking them at the firewall (WAF, Cloudflare bot fight mode, fail2ban) prevents the bots from ever reaching robots.txt to read it. Verify with the curl-with-user-agent test above.

3. Crawl-delay directives. Crawl-delay: 10 on the wildcard agent slows AI crawlers (especially Bytespider and PerplexityBot) to a crawl. Googlebot ignores Crawl-delay entirely. Most AI crawlers respect it. Remove unless you have a specific bandwidth concern.

4. Forgetting Google-Extended. Google-Extended is the opt-in signal for Gemini and Vertex AI training, distinct from Googlebot. Allowing Googlebot does not automatically allow Google-Extended. They are evaluated separately, and not allowing Google-Extended means your content does not enter Gemini training corpora.

5. Robots-meta noindex on key pages. Even with a perfect robots.txt, a <meta name="robots" content="noindex"> tag on a page tells crawlers to skip it. Common on staging pages that accidentally went live, on plugin-generated archive pages, and on testimonial/case-study pages built with page builders that default to noindex.

FAQ

How quickly do robots.txt changes take effect?

AI crawlers re-fetch robots.txt on a 1–7 day cadence depending on the site’s update frequency and the crawler’s queue priority. After fixing a blocked robots.txt, expect to start seeing the site re-crawled within a week and appearing in retrieval-mode AI responses within 2–4 weeks.

Will allowing AI crawlers cost me bandwidth?

Negligible. AI crawlers respect crawl rate limits and don’t behave like the abusive scrapers from 2023. For a site with under 100k pages, you’ll see ~5–20MB of additional traffic per month per crawler - measurable but not material.

If I publish original research, won’t AI training erode my advantage?

This is the publisher dilemma. The honest answer: yes, marginally. But the larger effect is the inverse - content that does NOT enter training corpora has zero chance of being cited in the next model’s “default” knowledge. For B2B brands competing on visibility rather than original IP licensing, opting in is the dominant strategy.

Should I block CCBot specifically?

Only if you have a specific reason. CCBot powers Common Crawl, which feeds dozens of smaller LLMs (Mistral, Cohere, research models, academic projects). Blocking CCBot disproportionately reduces your exposure to the long tail of AI tools without affecting the major engines you primarily care about. Allow it unless you have a legal or competitive reason to block.

What about robots.txt for staging or dev environments?

Block everything on staging: User-agent: *\nDisallow: /. Multiple cases of staging sites accidentally outranking production sites in AI answers have been documented. Keep staging fully blocked and use a separate subdomain with a separate robots.txt.

My robots.txt looks correct but I’m still not being cited. What now?

Robots.txt is necessary but not sufficient. If it’s correct, the remaining causes are entity authority (see our Wikidata setup guide), third-party citation weakness, or content shape (see our diagnostic for the six reasons ChatGPT doesn’t recommend brands). Run a free AI rank audit to identify which of these dominates for your brand.

Want the technical work done for you?

The GEO Blueprint engagement includes robots.txt setup, Cloudflare override configuration, sitemap optimization, schema.org Organization deployment, and all the other entity and crawl signals that drive AI citations.

Part of the Wbcom Designs family

The all-in-one WordPress community stack

Also ours: wbcomdesigns.comvapvarun.combrndle.com