Back to blog

AI Crawlers and robots.txt: Which Bots to Allow or Block for AI Visibility

AI Crawlers and robots.txt: Which Bots to Allow or Block for AI Visibility
Table of contents

Which AI crawler you let in decides whether ChatGPT, Claude and Perplexity can cite you: for AI visibility, allow search and retrieval bots, and make a separate call on training crawlers. Confuse GPTBot with OAI-SearchBot and you can quietly switch off your own citations.

Start with these essentials:

  • Sort bots into 3 buckets and decide per bucket.
  • Blocking GPTBot, ClaudeBot or Google-Extended opts you out of training; OpenAI takes roughly 24 hours.
  • Cloudflare has blocked known AI crawlers on new domains since July 1, 2025, so check your edge settings first.

The AI Crawler Roster: Who’s Who by Purpose

Every major AI company now runs several bots, and each one has a single job: collect training data, build a search index for citations, fetch a page live because a user asked, or check ads. Your robots.txt addresses them by their user-agent token, so the token is what you need to know. OpenAI documents four separate agents with independent settings, and Anthropic splits Claude into three, each with its own token.

OperatorTokenPurposeWhat it does / robots.txt notes
OpenAIGPTBotTrainingCollects content for model training
OpenAIOAI-SearchBotRetrieval / citationPowers search results and citations inside ChatGPT
OpenAIChatGPT-UserUser-triggered fetchFetches a page when a user asks. OpenAI says robots.txt may not apply
OpenAIOAI-AdsBotAdsChecks ad landing pages
AnthropicClaudeBotTrainingCollects training data, honors robots.txt and Crawl-delay
AnthropicClaude-SearchBotRetrieval / citationIndexes pages for Claude’s search answers
AnthropicClaude-UserUser-triggered fetchLive fetch on user request, and Anthropic says it follows robots.txt
GoogleGooglebotSearchControls Google Search, including AI Overviews and AI Mode
GoogleGoogle-ExtendedTraining switchDecides whether crawled content feeds Gemini training and grounding. Sends no requests of its own
GoogleGoogleOtherGeneral purposeGoogle’s catch-all crawler outside Search
PerplexityPerplexityBotRetrieval / citationCrawls and indexes for Perplexity answers
PerplexityPerplexity-UserUser-triggered fetchPerplexity says it generally ignores robots.txt
AppleApplebot-ExtendedTraining switchControls Apple Intelligence training on Applebot’s data and crawls nothing itself
Common CrawlCCBotTrainingBuilds an open dataset many LLM providers train on
MicrosoftBingbotSearchFeeds the Bing index that Copilot answers draw on
MetaMeta-ExternalAgentTrainingModel training and indexing for Meta products, with a documented robots.txt opt-out
MetaMeta-ExternalFetcherUser-triggered fetchReal-time fetches that Meta says can bypass robots.txt
AmazonAmazonbotTraining + product useOne token for product improvement and potential AI training, reportedly ignores Crawl-delay
ByteDanceBytespiderUndocumentedNo official docs or IP ranges, widely reported to ignore robots.txt

Two rows in that table trip up more teams than any others.

Two of these aren’t crawlers: Google-Extended and Applebot-Extended never visit your site. Googlebot and Applebot do the fetching. The Extended tokens only decide whether that data may train Gemini or Apple Intelligence. Disallowing them leaves you in Google Search and in Siri, Spotlight and Safari results.

The other trap sits in older templates you may have copied from somewhere else.

Clean out dead tokens: Lots of copied templates still list Claude-Web and anthropic-ai. Those strings no longer block the current ClaudeBot, so a file that only names them doesn’t block Anthropic at all.

Allow or Block? What You Gain and Lose With Each Bot

Blocking training crawlers costs future presence; blocking retrieval bots costs citations today. Training bots shape what the next model generation knows about your brand. Retrieval bots decide whether you can be quoted and linked in a live answer this week. User-triggered fetchers act on behalf of a single person who pasted your URL or asked about you.

Nobody can put a percentage on how much model presence you lose by opting out of training. The providers haven’t published one. What’s clear is the direction: Untrained content can’t shape descriptions.. On the other side, you keep control over content you don’t want used without anything in return.

  • Googlebot and Bingbot: always allow. Disallowing removes you from Search and Copilot.
  • OAI-SearchBot, Claude-SearchBot, PerplexityBot: allow for citations, since blocking may reduce visibility.
  • GPTBot, ClaudeBot, CCBot, Meta-ExternalAgent: your call. Blocking protects content from training.
  • Google-Extended: blocking keeps Search but stops Gemini grounding.
  • Amazonbot: one token covers product use and training, so you can’t split it.
  • Bytespider and Perplexity-User: often skip robots.txt, so use edge rules and IP checks.

If your team needs a shared picture of why citations matter in the first place, the AI search visibility overview explains how AI answers pick sources.

Three Copy-Paste robots.txt Templates

Pick the variant that matches your decision from the last section, replace the domain, and drop it into the dev ticket. The first one opens your site to every bot that respects robots.txt.

# Variant 1: Full AI visibility
User-agent: *
Disallow:

Sitemap: https://www.example.com/sitemap.xml

The second keeps every search, retrieval and user bot in while opting out of the main training crawlers. Most teams seeking citations without training use this variant.

# Variant 2: Visibility without training
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: Meta-ExternalAgent
Disallow: /

User-agent: Bytespider
Disallow: /

User-agent: *
Disallow:

Sitemap: https://www.example.com/sitemap.xml

The third shuts out every AI bot and keeps classic search alive. You disappear from AI citations with this setup. with this one.

# Variant 3: Restrictive
User-agent: Googlebot
Disallow:

User-agent: Bingbot
Disallow:

User-agent: *
Disallow: /

Sitemap: https://www.example.com/sitemap.xml

A few syntax rules decide whether these work as intended:

  • A bot follows its own named group, otherwise the wildcard group.
  • So blocking ClaudeBot alone leaves Claude-SearchBot on the wildcard rules.
  • Crawl-delay support varies: Anthropic honors it, Amazonbot ignores it.
  • Never block Bingbot unless you’re ready to lose Copilot.
  • OpenAI changes take roughly 24 hours to affect search.

Is Your Firewall Blocking AI Bots Before robots.txt Even Runs?

Quite possibly. WAF and edge rules are evaluated before robots.txt, so Firewall blocks override Allow lines.. Cloudflare has blocked AI crawlers by default on newly created domains since July 1, 2025. Since September 15, 2026, new domains also block training and agent bot traffic on ad pages by default, while search bots stay allowed.

Cloudflare’s optional Managed robots.txt feature writes its own AI-related Disallow lines on top of your file, marked with a # BEGIN Cloudflare Managed content block comment. The feature is off by default, but Managed robots.txt can alter your file..

Hand IT this ten-minute check:

  1. Open Security → Bots and AI Crawl Control in Cloudflare and check which AI crawlers are blocked.
  2. Run curl -A “GPTBot” https://yourdomain.com/robots.txt and compare it with your browser’s version.
  3. Look for the Cloudflare managed block comment, and disable Managed robots.txt if those lines aren’t yours.
  4. Review per-crawler request counts and the compliance view to see which bots follow your file.
  5. Click “Enforce robots.txt rules” to turn your file into a firewall rule, if wanted.
  6. On Sucuri, Wordfence or AWS WAF, check bot and rate-limit rules for AI user-agent blocks.

Verifying It Actually Works: Testing, Logs, and Spoofing

Proof lives in logs. Crawlers don’t run JavaScript and never show up in standard GA4. Confirm that invited bots are arriving and are real.

  1. Wait 24 hours after any change before judging OpenAI’s bots.
  2. Search logs: grep -E “GPTBot|OAI-SearchBot|ClaudeBot|PerplexityBot” access.log on nginx.
  3. Expect a “robots.txt” marker in OpenAI’s user-agent string when it fetches the file.
  4. Match IPs against openai.com/gptbot.json, openai.com/searchbot.json, openai.com/chatgpt-user.json and Perplexity’s ranges.
  5. Block any bot user-agent with an unlisted IP as a spoof at the edge.

Google-Extended and Applebot-Extended won’t appear in your logs at all, since they never send requests. Look for Googlebot and Applebot instead.

What robots.txt Can’t Do: The noindex Catch-22

robots.txt is a request, not a lock. Around 15% of AI page fetchers reached URLs despite a Disallow. ChatGPT-User and Bytespider managed it on nearly half of European sites studied. For bots that ignore the file, only edge rules help.

The noindex catch-22: Blocked bots can’t read noindex tags.. OpenAI says a disallowed URL can still appear as a bare title and link if discovered through other pages or third-party sources. If a page has to vanish from results, keep it crawlable so the noindex tag gets read. Block crawling only to prevent discovery, and accept that the link may still surface.

Does llms.txt replace robots.txt?

No. llms.txt barely gets read. In a 12-week study across 83 sites, OpenAI’s crawler requested llms.txt 7 times against 3,990 robots.txt fetches. A separate analysis of about 137,000 domains found that 97% of published llms.txt files got zero requests in May 2026. Developer agents like Cursor and Claude Code use it on documentation sites. For everyone else, robots.txt is the file that counts.

Can you keep your rights in Austria without blocking everything?

Yes, and Disallow lines for training bots do most of the work. Austria’s Copyright Act (Urheberrechtsgesetz) implements the EU text and data mining exception in § 42h (6) UrhG: anyone, businesses with commercial goals included, may copy lawfully accessible content for automated text and data analysis, AI training included, unless expressly reserved in machine-readable form.

For Austrian sites, the current view among Austrian legal experts and the OVE is that robots.txt satisfies the machine-readability requirement of § 42h UrhG. There’s no supreme court ruling in Austria on the details yet, so how “express” and “appropriate” the reservation must be is still open. Variant 2 plus a comment line at the top makes your intent explicit:

# Reservation of rights: Text and data mining of this website's content,
# including for AI training, is expressly prohibited under § 42h (6) UrhG.
# Search and user-requested access remain permitted.

The wording above is a practical starting point, not legal advice. Run the final version past your legal team.

How do you know if allowing the bots pays off?

Track two things separately: Bot hits and clicks from AI answers in GA4 via referrers like chatgpt.com and perplexity.ai. GA4’s built-in AI Assistants channel only recognizes ChatGPT, Gemini and Claude. A regex-based custom channel group catches more.

Your robots.txt Is a Starting Point, Not a Finish Line

Correct rules make sites crawlable, not citable. Once your logs show OAI-SearchBot, Claude-SearchBot and PerplexityBot arriving, the work shifts to the pages themselves: clear answers near the top, clean structure, credible signals.

A GEO audit across technical, content and authority checks shows where your site stands before rewriting. If your team lacks the hours for that content work, Claire is an AI agent that researches, writes, publishes and optimizes articles so they’re found on Google and in AI search engines like ChatGPT.

FAQ

How often should I update my AI crawler list?

Every few months, or whenever a provider announces a new bot. Tokens change and old ones stop working, as Claude-Web did. The community-maintained ai.robots.txt list on GitHub tends to update faster than most blog posts.

Send them Variant 2 with the reservation comment line. It keeps training crawlers out and states your § 42h reservation, while search bots can still cite you. Document the robots.txt change and the Cloudflare setting separately, so everyone sees which layer does what.

Do I need a TDMRep file on top of robots.txt?

No, but it adds a more specific signal. The TDM Reservation Protocol, usually placed at /.well-known/tdmrep.json, states your reservation for text and data mining directly and sits alongside your robots.txt rules.

byClaire

Content marketing like this article?

AI search already answers your customers’ questions. The only question is: with whom?

Discover moreTry it for free
Trusted by 500+ DACH users