Guides

robots.txt for AI Crawlers: The 2026 Guide to GPTBot, ClaudeBot, PerplexityBot and More

One line in robots.txt can decide whether ChatGPT can cite you. The trouble is that each AI company runs several crawlers with different jobs, and blocking the wrong one removes you from AI answers. Here's every major AI crawler, what blocking it actually does, and three templates you can copy.

GTGrowMarketingPro teamAI search research4 min read
robots.txt for AI crawlersblock GPTBotOAI-SearchBotClaudeBotPerplexityBotGoogle-Extendedlist of AI crawlersallow AI crawlers

Which AI crawlers visit your site? (full list)

This list of AI crawlers covers the user-agent tokens you'll see in your server logs and use in robots.txt. Descriptions are based on each company's own documentation (see sources).

AI crawlers and what blocking them doesClick a column to sort.
OAI-SearchBotOpenAIIndexes pages for ChatGPT searchYesYou don't appear in ChatGPT search answers
ChatGPT-UserOpenAIVisits a page when a ChatGPT user's request needs itMay not applyLimited effect; OpenAI says robots.txt may not apply
GPTBotOpenAICollects content to train future modelsYesOpts you out of training only
Claude-SearchBotAnthropicIndexes pages to improve Claude's search resultsYesLower visibility in Claude's web answers
Claude-UserAnthropicFetches a page when a Claude user asksYesClaude can't open your page for users
ClaudeBotAnthropicCollects content for model trainingYesOpts you out of training only
PerplexityBotPerplexityIndexes pages for Perplexity search resultsYesYou're less likely to be shown and linked
Perplexity-UserPerplexityVisits a page when a user asksGenerally noLittle effect; Perplexity says it generally ignores robots.txt
GooglebotGoogleGoogle Search, including AI Overviews and AI ModeYesYou disappear from Google, AI features included
Google-ExtendedGoogleControls Gemini's use of your content for training and groundingYes (a control token)Gemini can't use your pages to train or ground answers; Search is unaffected
BingbotMicrosoftBing search, which powers CopilotYesYou disappear from Bing and Copilot
CCBotCommon CrawlOpen web archive used to train many modelsYesOpts you out of Common Crawl

robots.txt templates you can copy

1. Allow all AI crawlers (maximum AI visibility)
User-agent: *
Allow: /

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

The simplest setup. Every search and AI crawler can read the site, including for training.

2. Stay in AI answers, opt out of training (most common)
# Training crawlers: opt out
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: CCBot
Disallow: /

# Search and answer crawlers: welcome
User-agent: OAI-SearchBot
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: *
Allow: /

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

Keeps you citable in ChatGPT, Claude, Perplexity, Google and Copilot. Add Google-Extended to the training group only if you accept that Gemini may use your pages less in its answers.

3. Block all AI use (not recommended for most businesses)
User-agent: GPTBot
Disallow: /

User-agent: OAI-SearchBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Claude-SearchBot
Disallow: /

User-agent: Claude-User
Disallow: /

User-agent: PerplexityBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: CCBot
Disallow: /

User-agent: *
Allow: /

Removes you from most AI answers. Sensible for some publishers with paid content; costly for brands that want to be recommended.

Try it: build your robots.txtSwitch crawlers on and off. The file and the list of assistants that can still read you update as you go.
ChatGPTClaudeGeminiPerplexityCopilot

Your firewall may be blocking AI bots anyway

robots.txt only works if the crawler reaches it. Many CDNs, hosts and security plugins block or rate-limit AI crawlers on their own. In July 2025 Cloudflare began blocking AI crawlers by default for new sites. When we audited our own site, requests identifying as GPTBot got a 429 error from our host while robots.txt allowed everything.

  1. 1
    Check your CDN's bot settings

    On Cloudflare, look at AI Crawl Control (AI crawler blocking) and Bot Fight Mode. Allow the search and answer crawlers you want.

  2. 2
    Check your host and security plugin

    Some hosts rate-limit unknown bots. Whitelist the verified AI crawlers you allow in robots.txt.

  3. 3
    Test as the bot, not as a browser

    Request your pages with each crawler's user-agent and compare the response. The Website AI Audit does this for GPTBot, ClaudeBot and PerplexityBot automatically.

Common robots.txt mistakes with AI crawlers

  • Blocking OAI-SearchBot along with GPTBot. You opt out of ChatGPT search, not just training. If you only want to block GPTBot, block it by name.
  • Typos in user-agent names. "GPT-Bot" or "Claude-Bot" match nothing. Copy tokens exactly.
  • A leftover "Disallow: /" under User-agent: *. Common after a staging site goes live; it blocks everyone.
  • Relying on robots.txt for private content. It's a public request, not access control. Use logins for anything private.
  • Forgetting the sitemap line. List your XML sitemap so crawlers find every page.
  • Assuming llms.txt replaces robots.txt. llms.txt is an informal guide some tools read; it doesn't grant or block access.
AI robots.txt checklist0/8 done

Frequently asked questions

Should I block GPTBot?

Block GPTBot if you don't want OpenAI to use your content for training future models. It won't remove you from ChatGPT search, as long as you leave OAI-SearchBot allowed.

What's the difference between GPTBot and OAI-SearchBot?

GPTBot collects content for training OpenAI's models. OAI-SearchBot indexes pages for ChatGPT search answers. OpenAI treats the two settings independently.

Does blocking Google-Extended affect Google Search?

No. Google says Google-Extended doesn't affect inclusion or ranking in Google Search. It controls whether Gemini can use your content for training and for grounding its answers.

Do AI crawlers respect robots.txt?

The main search and training crawlers from OpenAI, Anthropic, Google and Perplexity say they follow robots.txt. User-triggered fetchers such as ChatGPT-User and Perplexity-User may not, because a person asked for the page.

How long until robots.txt changes take effect?

OpenAI says changes for ChatGPT search can take about 24 hours. Other crawlers re-read robots.txt on their own schedules, usually within a day or two.

Sources
  1. Overview of OpenAI crawlers (OpenAI developer docs)
  2. About Claude's crawling (Anthropic help centre)
  3. Perplexity crawlers (Perplexity docs)
  4. Google's common crawlers, including Google-Extended (Google)
  5. Cloudflare will now, by default, block AI bots (MIT Technology Review, 1 July 2025)
GT
GrowMarketingPro team

We build GrowMarketingPro, which tracks how ChatGPT, Gemini and Claude talk about brands. We write about what we see in thousands of AI answers.

See what ChatGPT, Gemini and Claude say about your brand

Free plan, no card. Track the questions your buyers ask and the competitors AI names instead of you.

Start free