AI SearchPlaybook

AI Crawlers and robots.txt: Which Bots to Allow or Block in 2026

Copy one of three tested robots.txt setups, check what each one keeps and loses, and make sure your CDN isn't quietly overriding it.

Short answer

Allow the AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) plus Googlebot and Bingbot, and decide on training crawlers such as GPTBot and ClaudeBot as a separate choice. robots.txt only asks well-behaved bots to stay out, so check your CDN settings and server logs too.

Key takeaways

  • AI companies run separate bots for training, search and user requests, and each one is allowed or blocked on its own line in robots.txt.
  • Blocking training crawlers such as GPTBot, ClaudeBot and Applebot-Extended doesn't remove you from AI search, but blocking Google-Extended also drops you from grounded answers in the Gemini app.
  • AI Overviews and AI Mode run on Googlebot, so the way to leave them without leaving Google is the Search generative AI setting in Search Console.
  • User fetchers such as ChatGPT-User, Perplexity-User, meta-externalfetcher and Amzn-User may not obey robots.txt, and TollBit measured ChatGPT-User reaching disallowed pages on nearly half the European sites that named it, so a real block needs a server or firewall rule.
  • Since 15 September 2026, choosing Block for Training in Cloudflare also stops Googlebot, Bingbot and Applebot, so choose Disallow AI Training instead.

jump tochecklistfaq

On this page (13 sections)
  1. Which robots.txt should you use for AI crawlers?
  2. What are the three kinds of AI crawler?
  3. Which AI crawlers should your business allow?
  4. How many websites block AI crawlers?
  5. Which AI crawlers exist in 2026?
  6. How do you leave Google AI Overviews without leaving Google?
  7. Can your CDN or firewall override robots.txt?
  8. Do AI crawlers obey robots.txt?
  9. How do you check which AI crawlers reach your site?
  10. Which robots.txt mistakes block AI search by accident?
  11. Do you need llms.txt for AI crawlers?
  12. How do you audit your robots.txt with AI?
  13. AI crawler checklist

The right robots.txt for most businesses allows every AI search crawler and treats AI training as a separate yes or no. That takes one of three short setups below, and each one fits in a copy box.

Getting it wrong is easy in both directions. A security plugin or CDN toggle can block every AI bot for months without anyone noticing, and a panicked "block all AI" rule can remove a site from ChatGPT search, Claude and Perplexity answers along with model training.

Getting it right takes three decisions: which setup to copy, which of the 29 AI crawlers to name in it, and which controls outside robots.txt to check alongside it, chiefly Google's Search Console setting, Cloudflare's 2026 bot rules and a server rule for the fetchers that ignore the file.

Illustration of three AI crawler bots labelled search, user and training with allow and choose badges above a robots.txt file, cover of Noor Khan's AI crawlers guide

Which robots.txt should you use for AI crawlers?

Use Setup A if you want maximum AI visibility, Setup B to stay in AI search while opting out of model training, and Setup C only if keeping content away from AI matters more than being cited. Every setup goes in the robots.txt file at the root of your domain (yourdomain.com/robots.txt). Keep your existing rules for other bots and your Sitemap: line.

Comparison of three robots.txt setups for AI crawlers: Setup A keeps every AI search surface and allows training; Setup B keeps every surface except Gemini app grounding and opts out of training; Setup C keeps only Google AI Overviews and Microsoft Copilot
Setup B is the balanced choice for most publishers: it keeps every AI search surface except Gemini app grounding and opts out of training.

Setup A for maximum AI visibility

Setup A allows every well-behaved bot, which is the right default if you want to be cited and recommended as widely as possible and you're comfortable with training use.

robots.txt
User-agent: *
Allow: /

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

Download Setup A: robots-ai-maximum-visibility.txt

User-agent: * covers every bot that has no group of its own. If your file already has Disallow lines under *, such as /wp-admin/ or /cart/, keep them.

Setup B to stay in AI search without training

Setup B keeps every AI search crawler and user fetcher allowed through the * group and opts out of the documented training crawlers. It suits publishers and content-heavy businesses.

robots.txt
# Search engines, AI search bots and user fetchers: allowed
User-agent: *
Allow: /

# AI model training: opted out
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: Amazonbot
User-agent: MistralAI-Training
User-agent: CCBot
User-agent: Bytespider
Disallow: /

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

Download Setup B: robots-ai-search-no-training.txt

Two lines in this setup have side effects worth knowing. Google-Extended also controls grounding, so blocking it removes your pages from grounded answers in the Gemini app and the Vertex AI API for Gemini, though not from Google Search or AI Overviews. Amazonbot covers product improvement as well as possible training, while Amazon's search experiences such as Alexa use Amzn-SearchBot, which stays allowed.

Setup C to block AI crawlers

Setup C opts you out of ChatGPT search, Claude, Perplexity, Meta AI search, Mistral's search and model training, for every bot that honours the file. Google AI Overviews and Microsoft Copilot stay unaffected, because they run on Googlebot and Bingbot.

robots.txt
User-agent: *
Allow: /

# AI training, AI search and AI user fetchers: blocked
User-agent: GPTBot
User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: ClaudeBot
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: meta-webindexer
User-agent: meta-externalfetcher
User-agent: Amazonbot
User-agent: Amzn-SearchBot
User-agent: Amzn-User
User-agent: MistralAI-Training
User-agent: MistralAI-Index
User-agent: MistralAI-User
User-agent: DuckAssistBot
User-agent: CCBot
User-agent: Bytespider
Disallow: /

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

Download Setup C: robots-block-all-ai.txt

Several User-agent lines followed by one rule is valid under RFC 9309: the rule applies to every name in the group. What this file can't stop:

  • User fetchers that skip robots.txt. OpenAI says robots.txt "may not apply" to ChatGPT-User, Perplexity says Perplexity-User "generally ignores" it, Meta says meta-externalfetcher may bypass it, and Amazon says Amzn-User may not follow it. Google's Google-Agent and Google-GeminiNotebook fetchers generally ignore it too. A server or firewall rule is the only real block.
  • Navigational links in ChatGPT. OpenAI says opted-out sites can still appear as navigational links.
  • Google's and Bing's AI features. Use the Search Console control for AI Overviews and noarchive for Copilot, both covered below.
  • Apple's AI answers. Applebot data powers Spotlight, Siri and Safari search; Apple won't use content marked with the nosnippet meta tag as context for its AI answers.
  • ChatGPT agent. It has no robots.txt token. OpenAI signs its requests with a Signature-Agent header set to "https://chatgpt.com", so you control it at the CDN.

Partial rules that protect one section

Partial rules keep AI search access everywhere while opting one section out of training, such as a premium library.

robots.txt
User-agent: *
Disallow: /wp-admin/
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
Disallow: /wp-admin/
Disallow: /premium/
A robots.txt file in which GPTBot matches its own named group, ignores the general group, and can reach /wp-admin/ until the Disallow rule is copied into its group
A named group replaces the general group, so repeat every Disallow you still want inside it.

What are the three kinds of AI crawler?

The three kinds of AI crawler are training crawlers, search crawlers and user fetchers, and two "crawlers" are really permission tokens that never visit your site. Each kind answers a different question about your content, so each gets its own decision.

Grid of the training, search index, user fetcher and opt-out token bots of nine AI companies: every listed training and search crawler follows robots.txt, while ChatGPT-User, Amzn-User and meta-externalfetcher may not, and Perplexity-User, Google-Agent and Google-GeminiNotebook ignore it
Search crawlers follow robots.txt; the user fetchers are where compliance gets patchy.

Blocking each kind costs you something different.

Type What it does If you block it
Training crawlers Collect pages to train or fine-tune AI models Future models learn less from your pages. AI search visibility stays the same.
Search crawlers Build the index that AI search answers come from That assistant can't cite or recommend you in its search answers.
User fetchers Load a page because a person asked about it The assistant can't read your page on request, if the fetcher obeys the block.
Permission tokens Google-Extended and Applebot-Extended never crawl; they set how data from Googlebot and Applebot is used Your content is opted out of that company's training (and, for Google, Gemini grounding).

Most businesses want to be found in AI search and are neutral or cautious about training. In practice that means allowing search crawlers and user fetchers, then making one deliberate choice on training.

Which AI crawlers should your business allow?

Most businesses should allow every AI search crawler and user fetcher, and only publishers and paywalled sites gain much from blocking training. Training is the only column that changes by business type.

Your situation Search crawlers and user fetchers Training crawlers Why
Local business or service provider Allow Allow You want to be known and recommended; your content isn't the product
SaaS or B2B company Allow Usually allow Docs and comparison pages shape what AI says about you
E-commerce store Allow Your choice Product pages gain from AI visibility; protect unique editorial content if needed
Publisher or content business Allow Often block Your content is what you sell; keep search visibility, limit training
Paywalled or members-only content Allow public pages Block Keep public pages discoverable; premium pages belong behind a login

For healthcare, SaaS and e-commerce sites I recommend Setup A, because being described accurately by assistants matters more to them than training opt-outs. robots.txt is for managing well-behaved crawlers, not for security: anything that must stay private needs authentication.

How many websites block AI crawlers?

About 8% of the sites Cloudflare samples fully block GPTBot, and fewer block ClaudeBot or Google-Extended, so a full training block is still a minority choice. TechnologyChecker parsed 4,242 robots.txt files from Cloudflare Radar's sample of top domains on 28 September 2026 for its robots.txt AI crawler report:

8.11%

of sampled robots.txt files fully disallowed GPTBot, against 6.91% for ClaudeBot and 5.94% for Google-Extended

Cloudflare Radar via TechnologyChecker, 28 Sep 2026

7.69%

of files named GPTBot under Allow, up from 2.51% a year earlier

Cloudflare Radar via TechnologyChecker, Sep 2025 to Sep 2026

0.91

files disallowing OAI-SearchBot for every file allowing it, the only AI bot in the report allowed more often than blocked

Cloudflare Radar via TechnologyChecker, 28 Sep 2026

Bigger sites block more often. AI Crawler Check's study of 4,962 robots.txt files from the Tranco top 10,000, fetched on 5 October 2026, found 14.3% blocking GPTBot and 20.8% in the top 1,000. Nearly half of those GPTBot blockers (48.9%) still allowed OAI-SearchBot, which is Setup B in practice.

Site owners block the bots that give the least back. The table counts the files that name each bot under Disallow and under Allow, in the same 28 September 2026 sample:

Bot Files with a Disallow Files with an Allow Disallows per Allow
Bytespider 387 101 3.83
CCBot 430 165 2.61
meta-externalagent 303 119 2.55
Amazonbot 308 122 2.52
GPTBot 520 326 1.60
ClaudeBot 446 283 1.58
Google-Extended 398 288 1.38
OAI-SearchBot 268 295 0.91
Bar chart of Disallow rules per Allow rule for eight AI crawlers on 28 September 2026: Bytespider 3.83, CCBot 2.61, meta-externalagent 2.55, Amazonbot 2.52, GPTBot 1.60, ClaudeBot 1.58, Google-Extended 1.38 and OAI-SearchBot 0.91
OAI-SearchBot is the only AI crawler that sites allow more often than they block.

That ordering follows the same logic as Setup B. Undocumented and dataset crawlers get blocked most, training crawlers come next, and the one AI search crawler in the report is the only bot allowed more often than blocked.

Which AI crawlers send visitors back?

Google sends back about one visit for every five pages it crawls, while the big AI platforms crawl hundreds or thousands of pages for every visit they refer. Cloudflare calls this the crawl-to-refer ratio: HTML page requests from a platform's crawlers divided by HTML page visits that arrive with that platform in the Referer header.

Platform Pages crawled per referral, Q3 2026
Google 4.9
OpenAI 309
Anthropic 988
Perplexity 1,083
Bar chart on a log scale of pages crawled per referral in Q3 2026: Google 4.9, OpenAI 309, Anthropic 988 and Perplexity 1,083
Referrals come from AI search answers, so a training opt-out costs you crawl load, not visits.

The figures are Cloudflare Radar data for July to September 2026, as compiled by TechnologyChecker. Read them as direction, not precision: Cloudflare notes that apps which send no Referer header make a platform look more extractive than it is, and the ratios swing quarter to quarter. Anthropic's was 36,551 in Q3 2025.

Referrals come from AI search answers, not from training crawls. Opting out of training doesn't cut the visits you get from ChatGPT, Claude or Perplexity; blocking their search crawlers does.

Which AI bots crawl the most?

Training crawlers make far more requests than dedicated AI search bots. In Cloudflare Radar data for July to September 2026, compiled by TechnologyChecker, these were the largest shares of AI-bot requests:

23.8%

of AI-bot requests came from Googlebot, which serves Search and AI features

Cloudflare Radar via TechnologyChecker, Q3 2026

13.3%

came from meta-externalagent, Meta's training and indexing crawler

Cloudflare Radar via TechnologyChecker, Q3 2026

3.3%

came from Claude-SearchBot, the only search-only AI bot in the top nine

Cloudflare Radar via TechnologyChecker, Q3 2026

Bar chart of AI-bot request share on Cloudflare in Q3 2026: Googlebot 23.8%, meta-externalagent 13.3%, ClaudeBot 13.2%, GPTBot 8.1%, Bingbot 7.9%, Applebot 7.2%, Amazonbot 7.0%, Bytespider 4.1%, Claude-SearchBot 3.3%
Training crawlers in the top nine account for about 46% of AI-bot requests; dedicated AI search bots are a small slice.

The remaining shares were ClaudeBot 13.2%, GPTBot 8.1%, Bingbot 7.9%, Applebot 7.2%, Amazonbot 7.0% and Bytespider 4.1%. OAI-SearchBot sat just outside the top nine for the quarter and reached 3.57% in September alone. A training opt-out removes most of the AI crawl load; blocking a search bot saves very little load and costs you citations.

Which AI crawlers exist in 2026?

The AI crawlers that matter in 2026 come from twelve companies: nine with their own section below and three more in the last table. Each section uses the exact user-agent token from that vendor's own documentation. Bots are renamed and added every few months, so re-check these pages each quarter.

OpenAI (ChatGPT)

OpenAI runs four documented bots, listed on its crawler overview.

Bot Job Follows robots.txt? Notes
OAI-SearchBot Search Yes Surfaces sites in ChatGPT search. Opted-out sites can still appear as navigational links.
GPTBot Training Yes Independent of search: blocking it doesn't affect ChatGPT search.
ChatGPT-User User fetcher May not apply User actions in ChatGPT and Custom GPTs. Not used to decide what appears in search.
OAI-AdsBot Ads safety check Not stated Checks landing pages submitted as ChatGPT ads. Not used for training.

ChatGPT agent, OpenAI's browsing agent, has no token at all. It signs requests under RFC 9421 with Signature-Agent: "https://chatgpt.com", per OpenAI's allowlisting guide.

Anthropic (Claude)

Anthropic's three bots all honour robots.txt, according to its crawler help page.

Bot Job Follows robots.txt? Notes
Claude-SearchBot Search Yes Improves Claude's search results.
Claude-User User fetcher Yes Fetches pages when a Claude user asks.
ClaudeBot Training Yes Supports the non-standard Crawl-delay line.

Anthropic warns that blocking its IP addresses may not give a lasting opt-out, because it stops the bots reading your robots.txt. Use the file for Anthropic's bots, not an IP block.

Google

Google's AI features run on Googlebot, and its training controls run on a token, per Google's common crawlers list and user-triggered fetchers list.

Bot Job Follows robots.txt? Notes
Googlebot Search Yes Powers Google Search, including AI Overviews and AI Mode. Never block it unless you want to leave Google.
Google-Extended Training and grounding token Token only Controls Gemini model training and grounding in Gemini Apps and the Vertex AI API. No effect on Search inclusion or ranking.
Google-CloudVertexBot Vertex AI Agents Yes Crawls that a site owner requests for their own Vertex AI agent. No effect on Search.
Google-Agent User fetcher Generally ignores Agents on Google infrastructure that browse and act on a user's request. Google is testing Web Bot Auth signatures for it.
Google-GeminiNotebook User fetcher Generally ignores URLs Gemini Notebook users add as sources. Replaced Google-NotebookLM, per Google's documentation updates.

Microsoft (Bing and Copilot)

Microsoft publishes no separate AI crawler token: Bingbot builds the Bing index that Copilot answers from, so it should stay allowed. Bing's webmaster guidelines, rewritten in February 2026 and summarized by Search Engine Journal, say noarchive keeps a page out of Copilot answers and grounding, while nocache limits Copilot to the URL, title and snippet.

Perplexity

Perplexity separates its index crawler from its live fetcher, per its bot documentation.

Bot Job Follows robots.txt? Notes
PerplexityBot Search Yes Builds the index Perplexity cites. Not used to train foundation models.
Perplexity-User User fetcher Generally ignores Perplexity says this fetcher "generally ignores robots.txt rules" because a user asked. IPs in perplexity-user.json.

Apple

Apple uses one crawler and one permission token, per its Applebot page (updated September 2026).

Bot Job Follows robots.txt? Notes
Applebot Search, and possibly training Yes Powers Spotlight, Siri and Safari search. Its data may also train Apple foundation models.
Applebot-Extended Training token Token only Opts Applebot data out of training. Doesn't crawl and doesn't affect search ranking.

To keep a page out of AI answers in Apple products while staying in search, add the nosnippet meta tag.

Amazon

Amazon now runs three agents, per its Amazonbot page.

Bot Job Follows robots.txt? Notes
Amazonbot Product improvement and training Yes Data "may be used to train Amazon AI models".
Amzn-SearchBot Search Yes Search experiences such as Alexa. Not used for generative AI training.
Amzn-User User fetcher May not apply Live fetches for user requests, such as Alexa questions.

Amazon's crawlers ignore Crawl-delay and may use a cached robots.txt up to 30 days old. Amazon also reads the noarchive robots meta tag as "don't use this page for model training", which gives you a page-level training opt-out.

Meta

Meta lists three AI-related crawlers on its web crawlers page, documents the tokens in lowercase, and tells site owners to block them with a Disallow rule. Its crawlers may cache robots.txt for up to 24 hours.

Bot Job Follows robots.txt? Notes
meta-externalagent Training and indexing Yes Trains foundation models or indexes content for Meta products.
meta-webindexer Search Yes Improves Meta AI search results and lets Meta AI cite and link your pages.
meta-externalfetcher User fetcher May bypass Fetches links a user asks about for agentic features.

Keep facebookexternalhit allowed if you want link previews when people share your pages. Meta notes it may bypass robots.txt for security or integrity checks.

Mistral

Mistral splits training, search and live fetches into three tokens, per its robots page. It publishes the tokens so site owners can manage access in robots.txt, but unlike OpenAI or Perplexity it says nothing either way about its user fetcher.

Bot Job Follows robots.txt? Notes
MistralAI-Index Search Yes Indexes pages for Mistral's search in Vibe. Not used for training. IPs in mistralai-index-ips.json.
MistralAI-User User fetcher Not stated Visits pages when a Vibe user asks and links the source. IPs in mistralai-user-ips.json.
MistralAI-Training Training Yes Builds training datasets for Mistral models.

Other bots in your logs

Three more bots show up often enough to need a decision.

Bot Company Job Notes
DuckAssistBot DuckDuckGo AI answers Fetches pages for DuckAssist answers. Not used for training. Opt-outs take 72 hours.
CCBot Common Crawl Open dataset Its archive is widely used for model training. IPs published in ccbot.json.
Bytespider ByteDance Reported training No official documentation, so robots.txt compliance is unknown. Use a firewall rule if it matters.

How do you leave Google AI Overviews without leaving Google?

You leave AI Overviews and AI Mode with the Search generative AI setting in Search Console, not with robots.txt. Google-Extended doesn't touch them, because both features run on Googlebot.

Nine goals matched to the control that achieves each, from the Search Console setting for AI Overviews to robots.txt tokens, nosnippet and noarchive meta tags, a server rule and Cloudflare's Disallow AI Training option
robots.txt is one of five controls; the right one depends on which AI surface you want to leave.

The control sits under Settings → Search generative AI in Search Console. It covers AI Overviews, AI Mode and generative AI features in Discover, it's set to include by default, and Google says content is typically excluded within one to two days of a change. It has been available to every site worldwide since 31 August 2026. Google also says the setting isn't used as a ranking or inclusion signal for the rest of Search, and it doesn't control AI training.

One detail catches multi-site setups: a subdomain or URL-prefix property inherits the setting of its parent domain property unless its own owner overrides it. Check the parent before you assume a subdomain is included.

Google-Extended does a different job. Disallowing it stops your content being used to train future Gemini models and to ground answers in Gemini Apps and the Vertex AI API. It has no effect on Search inclusion or ranking. If you'd rather stay in AI Overviews and be cited more often, that work is in how to get cited in Google AI Overviews.

Can your CDN or firewall override robots.txt?

Yes, your CDN or firewall can block AI crawlers before they ever read robots.txt, and Cloudflare's settings changed twice in 2026. After the robots.txt file itself, the CDN dashboard is the next place to look.

Cloudflare's Training setting: Block stops Googlebot, Bingbot and Applebot along with training crawlers, while Disallow AI Training lets the search crawlers through and asks training-only bots not to train
If you use Cloudflare, choose Disallow AI Training: Block now costs you Google, Bing and Apple search traffic.

Cloudflare's AI crawler settings have moved four times:

  1. 1 July 2025: Cloudflare switched its default to blocking AI crawlers unless the owner allowed them.
  2. 24 September 2025: its managed robots.txt started adding a Content Signals line, Content-Signal: search=yes, ai-train=no. If you see that line in your file, Cloudflare put it there.
  3. 1 July 2026: the single "Block AI bots" switch was split into separate Search, Agent and Training controls, each set to Allow, Block, or Block on pages with ads.
  4. 15 September 2026: "Block AI bots" was deprecated, managed robots.txt gave way to Bot Preference Sync, and Block now applies to mixed-use crawlers that do search and training together.

New Cloudflare domains are offered one of two presets. Both allow Search; sites without ads also allow Training and Agent, while sites with ads get Disallow AI Training and Agent blocked on pages with ads. Cloudflare notes that Bing won't receive the no-training signal until Microsoft's support launches, which it expects in early 2027.

Other places to check:

  • Other CDNs and hosts such as Vercel, Netlify, Akamai, Fastly and managed WordPress hosts: look for bot protection, "bot fight" modes or AI-blocking toggles.
  • WordPress security plugins, such as firewalls and rate limiters, sometimes block unfamiliar user agents.
  • Rate limits that are too tight return 429 to crawlers that request many pages quickly. Raise the limit for verified bots rather than blocking them.
  • The robots.txt your CDN serves. Cloudflare's Disallow AI Training option publishes its preference in the robots.txt that bots receive, and its older managed robots.txt added the Content-Signal line. The file in your CMS isn't always the file GPTBot reads, so check the served copy (step 1 below).

Do AI crawlers obey robots.txt?

Yes, the declared crawlers of the major AI companies follow robots.txt, but several user fetchers don't, and undeclared crawlers ignore it by design. robots.txt is a public request, not a lock.

The fetchers with documented exceptions are ChatGPT-User, Perplexity-User, meta-externalfetcher, Amzn-User, Google-Agent and Google-GeminiNotebook. Anthropic says its bots, Claude-User included, honour the file.

Measured behaviour matches the policies. TollBit's State of the Bots report for the first half of 2026, as reported by Search Engine Journal, found that about 15% of identified AI page fetchers reached URLs that European sites had disallowed. ChatGPT-User, Bytespider and Youbot each reached disallowed pages on nearly half of the European sites that named them.

Undeclared crawling is the other risk. In August 2025, Cloudflare published evidence that Perplexity used undeclared crawlers, disguised as a regular browser, to reach sites that had blocked its declared bots. Cloudflare de-listed Perplexity as a verified bot and added rules to block the behaviour.

Agents are the next identity problem. ChatGPT agent identifies itself with signed HTTP requests rather than a user-agent token, and Cloudflare verifies those signatures for you, while Akamai and Vercel list ChatGPT agent in their bot directories. Google is testing the same approach, Web Bot Auth, for Google-Agent. Each layer has its own job:

  • robots.txt tells well-behaved crawlers what you prefer.
  • Firewall or CDN rules enforce blocks on bots that ignore it.
  • Authentication protects anything that must stay private.

How do you block AI crawlers that ignore robots.txt?

You block AI crawlers that ignore robots.txt at the server or CDN, where a request is refused with a 403 before your page loads. The CDN route is better when you have it, because CDN bot controls such as Cloudflare's verify a bot's IP or signature, so a faked user agent doesn't slip through. On your own server, an nginx rule refuses the user agents you name:

Text
# In the http block: flag the user agents to refuse
map $http_user_agent $block_ai_fetcher {
    default 0;
    ~*(ChatGPT-User|Perplexity-User|meta-externalfetcher|Amzn-User|Bytespider) 1;
}

# In the server block: refuse flagged requests
if ($block_ai_fetcher) {
    return 403;
}

Three cautions before you ship it. A user-agent rule stops only bots that announce themselves honestly, so pair it with the vendors' published IP lists for anything that matters. Blocking ChatGPT-User or Perplexity-User means those assistants can't read your page when a user pastes your URL, which most businesses don't want. And for bots that do obey robots.txt, such as Anthropic's, keep using the file: Anthropic warns that IP blocks stop its bots from reading your opt-out.

How do you check which AI crawlers reach your site?

You check AI crawler access in six steps, from reading the file bots actually receive to re-testing a few days later.

Six verification steps for AI crawler access: fetch the live robots.txt with curl and read the Search Console report, count visits per bot in logs, check status codes, verify IPs, ask an assistant to summarize a URL, and re-check after three days
Steps 2 to 4 need server or CDN logs. If you have none, steps 1, 5 and 6 still catch most blocks.
  1. Read the file bots receive. Fetch the live copy with curl -s https://yourdomain.com/robots.txt and compare it with the version in your CMS, because a CDN can add lines on the way out. Then check Search Console's robots.txt report for fetch errors and the version Google cached.

  2. Count visits per bot. On a Linux or Mac server, this loop counts requests for each bot. It matches the token followed by a slash, which is how vendors format their user agents, so it skips the info URLs inside the string and doesn't double-count.

    Command
    LOG=/var/log/nginx/access.log
    for bot in Googlebot bingbot Applebot OAI-SearchBot ChatGPT-User GPTBot Claude-SearchBot Claude-User ClaudeBot PerplexityBot Perplexity-User meta-externalagent meta-webindexer Amazonbot Amzn-SearchBot CCBot; do
      printf "%-20s %s\n" "$bot" "$(grep -ic "$bot/" "$LOG")"
    done
    

    Google-Extended and Applebot-Extended never appear in logs, because they're permission tokens, not crawlers.

  3. Check status codes. This shows which codes one bot receives; you want mostly 200. Many 403 or 429 responses for a bot you allowed mean your firewall or rate limiter is blocking it. Field $9 is the status code in the default combined log format; adjust it for a custom format.

    Command
    grep -i "OAI-SearchBot/" /var/log/nginx/access.log | awk '{print $9}' | sort | uniq -c | sort -rn
    
  4. Verify the IP. User agents can be faked. Google explains reverse DNS verification, Bing has a Verify Bingbot tool, and the others publish IP lists: OpenAI (searchbot.json, gptbot.json, chatgpt-user.json), Anthropic (bots.json), Perplexity (perplexitybot.json, perplexity-user.json), Mistral (mistralai-index-ips.json, mistralai-user-ips.json) and Common Crawl (ccbot.json).

  5. Ask an assistant. Ask ChatGPT with search on, or Perplexity, to "summarize the page at [your URL]". If it says it can't access the page, something is blocking it.

  6. Re-check later. OpenAI says ChatGPT search takes about 24 hours to reflect a robots.txt change, and DuckDuckGo says 72 hours. Re-run steps 2 and 5 after three days.

Which robots.txt mistakes block AI search by accident?

The robots.txt mistakes that most often block AI search are blocking a search bot when you meant training, and leaving a staging rule live. All five below are quick to check.

  1. Blocking search crawlers when you meant to block training. Check OAI-SearchBot, Claude-SearchBot and PerplexityBot by name.
  2. A leftover Disallow: / under User-agent: * from a staging site. It blocks every bot, Googlebot included.
  3. Forgetting that a named group replaces the * group. A bot with its own group ignores your general rules, as in the partial example above.
  4. Blocking CSS and JavaScript files. Crawlers need them to render your pages.
  5. Treating robots.txt as security. The file is public and voluntary. Anything private needs authentication.

Do you need llms.txt for AI crawlers?

No, llms.txt is optional, and it never replaces crawler access. It's a proposed format, published by Jeremy Howard in September 2024, for giving AI tools a hand-picked Markdown map of your site.

Google's AI optimization guide, updated in July 2026, says Search ignores llms.txt and similar AI text files, so they neither help nor hurt there. No major AI assistant has publicly confirmed using one either. It's quick to add if you like, but get the crawlers in first. More in the llms.txt glossary entry.

How do you audit your robots.txt with AI?

You audit robots.txt with AI by pasting the file into ChatGPT, Claude or Gemini with a prompt that lists every bot and your goal. Use this prompt:

Prompt
You are a technical SEO specialist. Here is my website's robots.txt file:
"""
[paste robots.txt]
"""

About my site: [type of business, e.g. local service / SaaS / e-commerce / publisher]
My goal: [choose one: maximum AI visibility / visible in AI search but opted out of AI training / block all AI]
Sections I want to protect (optional): [paths, e.g. /premium/]

1. For each of these bots, tell me whether this file allows or blocks it, and quote the rule responsible: Googlebot, Bingbot, Applebot, OAI-SearchBot, ChatGPT-User, GPTBot, Claude-SearchBot, Claude-User, ClaudeBot, PerplexityBot, Perplexity-User, Google-Extended, Applebot-Extended, meta-externalagent, meta-webindexer, meta-externalfetcher, Amazonbot, Amzn-SearchBot, Amzn-User, MistralAI-Index, MistralAI-User, MistralAI-Training, DuckAssistBot, CCBot, Bytespider.
2. Remember that a bot with its own User-agent group ignores the * group. Flag any named group that is missing rules from the * group.
3. Point out every rule that conflicts with my goal, especially any that block search crawlers or Googlebot.
4. Flag syntax errors, rules that don't do what they appear to do, and blocked CSS or JavaScript.
5. Give me a corrected robots.txt that matches my goal, keeps my rules for non-AI bots and my Sitemap line, and protects the sections I listed.
6. List what robots.txt can't control for my goal, such as user fetchers that ignore it, Search Console's Search generative AI setting, and CDN bot settings.

Check the answer against the vendor tables above before you publish: assistants sometimes invent bot names.

AI crawler checklist

An AI crawler access review runs in this order, from policy to re-test.

One-page cheat sheet listing AI crawlers to allow, training crawlers to decide on, user fetchers that may ignore robots.txt, controls outside robots.txt and five checks
Everything in this guide on one page: what to allow, what to decide, what to enforce elsewhere and how to check. Save image
0 of 14 done

Crawler access is part of every SEO audit I run, because nothing else in AI search optimization works until the right bots can read the page. It's the first check in the AI readiness layer of a good SEO audit and the Access pillar in my AI search optimization guide. It sits inside technical SEO, and it's the gate every GEO effort passes through. Once the bots can read the page, how you structure the content decides which passages AI answers lift.

Frequently asked questions

Does blocking GPTBot remove my site from ChatGPT?

No, blocking GPTBot only opts your content out of OpenAI model training. ChatGPT search uses OAI-SearchBot, and OpenAI says each setting is independent. Keep OAI-SearchBot allowed and you stay eligible for ChatGPT search answers.

Does ChatGPT-User obey robots.txt?

No, not reliably: OpenAI says robots.txt rules may not apply to ChatGPT-User, because a person in ChatGPT asked for the page. If you must stop it, block it with a firewall rule and verify the IPs against OpenAI's chatgpt-user.json list.

How long do robots.txt changes take to reach AI bots?

Robots.txt changes reach most AI bots within about a day. OpenAI quotes about 24 hours for ChatGPT search, Perplexity and Meta up to 24 hours, Google caches robots.txt for up to 24 hours, and DuckDuckGo says 72 hours for DuckAssistBot. Amazon may use a cached copy up to 30 days old, and content already processed isn't instantly forgotten.

Will allowing AI crawlers slow down my site?

No, not on most sites, and allowing them is the default I recommend. If one bot requests too many pages, rate-limit it at your CDN rather than blocking it. Anthropic supports the Crawl-delay line for its bots, while Amazon and Google ignore it.

Are user-agent names in robots.txt case-sensitive?

No, Google treats both the User-agent field and its value as case-insensitive, so GPTBot and gptbot match the same bot. Paths in Allow and Disallow rules are case-sensitive, so /Premium/ and /premium/ are different rules.

Can a meta tag stop AI crawlers instead of robots.txt?

Partly, but there's no universal noai tag. Apple won't use content marked nosnippet as context for its AI answers, Bing keeps noarchive pages out of Copilot answers, and Amazon reads noarchive as no model training. Meta says it relies on robots.txt rather than non-standard NoAI tags, so robots.txt stays the main control.

Your next move

  1. 01Run the checklist on your most important page.Open the checklist →
  2. 02Get a free written gap snapshot for one URL.Request it →
  3. 03Read next: How to Get Cited in Google AI Overviews and AI ModeRead it →

join the discussion

Comments

Questions, pushback and your own results are all welcome. I read every comment.

work with me

Let me show you exactly where your search visibility is breaking, and what to fix first.