Guide · AI search & GEO

robots.txt and AI bots: who gets in to your site

Every AI company runs several crawlers, and they don't all do the same thing. Block the wrong one and you can drop out of ChatGPT or Perplexity answers without even noticing.

Server rack with glowing green lights in a data center
Short answer

AI bots fall into two groups: those that collect content to train models (GPTBot, ClaudeBot, CCBot, plus the Google-Extended and Applebot-Extended tokens) and those that search and fetch pages to answer in real time (OAI-SearchBot, Claude-SearchBot, PerplexityBot and user agents like ChatGPT-User). If you want to be cited, don't block the search bots; you can block the training bots without losing that visibility. robots.txt is a request that the major bots honor, not a lock.

Key points
  • Training and search are different things: decide on each separately.
  • Blocking OAI-SearchBot removes you from ChatGPT's search answers.
  • Google-Extended doesn't affect your Google rankings or AI Overviews.
  • Agents acting on a user's request may not follow robots.txt.
  • Check your CDN or firewall too: they can block bots even when robots.txt allows them.

What robots.txt is and what it can't do

robots.txt is a text file at the root of your domain (yoursite.com/robots.txt) that tells crawlers which paths they may visit. Each block starts with User-agent (the bot's name) followed by Allow and Disallow rules. It became a standard formalized by the IETF in 2022, and Google, Bing and the major AI companies honor it for their automated crawlers.

But it has clear limits:

  • It isn't security. It's a public request. A malicious bot can ignore it, and anyone can read your robots.txt to see which paths you're "hiding."
  • It doesn't erase what's already been collected. Blocking a training bot today prevents future crawls; it doesn't pull your content out of models that have already been trained.
  • It doesn't control third-party indexes. If another site copies your text, your robots.txt doesn't protect it.

With that out of the way, the useful question isn't "Should I block AI?" but "Which bot, and for what use?"

Training vs. search: the difference almost nobody explains

AI companies use the web in two very different ways:

  1. To train models. A crawler collects public text that may be used to train future versions of the model. Your content becomes part of what the model "learned," but with no link or credit in any specific answer.
  2. To search and cite. When someone asks about something current, the assistant queries its search index or visits pages on the spot, then shows the source with a link. This is where visits come from, and where GEO does its work.

That's why the companies split their bots. You can say "don't train on my content" and, at the same time, "yes, you can show me and link to me in your answers." For most local businesses in Torreón, which live on being found, that combination is usually the most sensible.

The bot table you need to know

Here are the most important crawlers and tokens according to each company's official documentation as of late 2026:

User-agentCompanyWhat it's forIf you block it
GPTBotOpenAICollects content to train modelsYour site isn't used for training; you can still show up in ChatGPT search
OAI-SearchBotOpenAISurfaces and links sites in ChatGPT searchYou won't be cited in ChatGPT search answers (perhaps only as a navigational link)
ChatGPT-UserOpenAIVisits initiated by a user or a custom GPTOpenAI warns that robots.txt may not apply to these visits
ClaudeBotAnthropicCollects content that may be used for trainingYour site isn't used for training
Claude-SearchBotAnthropicImproves the quality of Claude's search resultsLower likelihood of appearing in search-backed answers
Claude-UserAnthropicVisits when a user asks Claude to look at a pageClaude won't be able to read your page when someone asks it to
PerplexityBotPerplexityIndexes to surface and link in results; according to Perplexity, it doesn't train modelsYou disappear from Perplexity's sources
Perplexity-UserPerplexityVisits on a user's requestPerplexity says it generally ignores robots.txt
Google-ExtendedGoogleA token (not a separate crawler): use for training Gemini and for grounding in Gemini Apps and Vertex AIDoesn't affect your presence in Google Search and isn't a ranking signal
Applebot-ExtendedAppleA token: whether what Applebot crawls may be used to train Apple's modelsApplebot keeps indexing for Siri and Spotlight
CCBotCommon CrawlAn open web archive many use to train modelsYou're left out of future crawls of that archive

There are more (from Meta, Amazon, ByteDance and other companies), and the names change. Before you copy lists off the internet, check each company's official documentation.

Google: why blocking Google-Extended won't remove you from AI Overviews

This is the most common mix-up. AI Overviews and AI Mode are part of Google Search and use what Googlebot crawls. Google-Extended only controls whether your content is used to train and ground Gemini outside of Search.

In practice:

  • If you block Google-Extended, you stay in Google Search and can keep appearing in AI Overviews.
  • If you block Googlebot, you disappear from Google entirely. Don't do it.
  • If you want to limit how much of your page's text is shown in results (including AI features), Google offers the nosnippet, data-nosnippet and max-snippet directives. And in 2026, Search Console added a control to exclude a site from its generative AI features.

We cover it in depth in our AI Overviews guide.

Three setups depending on your goal

1. Maximum visibility (recommended for most local businesses)

Don't block any AI bots. Your robots.txt only excludes private paths (admin, cart, internal search results) and declares your sitemap.

2. Visibility yes, training no

You block the training bots and let the search bots through:

User-agent: GPTBot

Disallow: /

User-agent: ClaudeBot

Disallow: /

User-agent: CCBot

Disallow: /

User-agent: Google-Extended

Disallow: /

User-agent: Applebot-Extended

Disallow: /

User-agent: *

Disallow: /admin/

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

OAI-SearchBot, Claude-SearchBot and PerplexityBot fall under the general block and can crawl.

3. Opt out of AI (for paid or licensed content)

You also block the AI search bots. This makes sense if you sell content, such as courses or reports, and would rather nobody summarize it. Accept the cost: you'll stop appearing as a source.

Our llms.txt and AI robots generator builds any of the three options for you with no syntax errors.

The block you don't see: CDN, firewall and hosting

We've seen La Laguna sites with a flawless robots.txt that still didn't show up in a single AI answer. The cause was in another layer:

  • A CDN that blocks AI bots. Some services, such as Cloudflare, offer options to block AI crawlers and turn them on by default on certain plans. Check the dashboard even if your robots.txt says otherwise.
  • WordPress security plugins. Some block by user-agent or by request volume and treat OAI-SearchBot as an attack.
  • Shared hosting. Some providers throttle bots to save resources. Ask support or review the access logs. We compare the options in shared hosting vs. VPS.

The free SEO + GEO audit checks whether your robots.txt lets ChatGPT, Claude and Perplexity through, a good first filter before you dig into server logs.

Mistakes we see in robots.txt files on Mexican websites

Reviewing sites in Torreón, Saltillo and Monterrey, these are the problems we find most often, almost always inherited from a template or a plugin:

  • Disallow: / in the general block. It was added while the site was under construction and nobody removed it. Result: neither Google nor any assistant can read a thing.
  • Blocking the CSS or JavaScript folder. Search engines need those files to see the page the way a person does. If you block them, they may misread the content.
  • Lists copied from the internet that block "all AI bots," including OAI-SearchBot, Claude-SearchBot and PerplexityBot. The owner wanted to avoid training and ended up excluded from search-backed answers.
  • Misspelled names. "GPT-Bot" or "Claude-Bot" don't match any crawler; the rule does nothing.
  • Using robots.txt to remove pages from Google. If a page is already indexed and you block it, Google can't see its noindex tag. To get it out of the index, let it be crawled and use noindex.
  • No Sitemap line. It isn't required, but it helps crawlers find your new pages faster.

A good habit: every time someone touches robots.txt, have them leave a comment with the date and the reason (lines starting with # are ignored).

How to verify who's actually visiting you

Bots don't show up in Google Analytics because they don't execute JavaScript (we explain this in how to track AI traffic in GA4). To see them:

  1. Check your server's access logs or your CDN's analytics dashboard and filter by user-agent.
  2. Confirm they're real. Anyone can put "GPTBot" in their user-agent. OpenAI, Google and other companies publish the IP ranges of their crawlers; compare against them before making decisions.
  3. Recheck every quarter. New bots appear and names change. Schedule the review alongside your llms.txt update.

If you'd like us to set this up and monitor it, it's part of our SEO for AI (GEO) service.

FAQ

Questions about this topic

Will blocking GPTBot remove me from ChatGPT?
No. GPTBot is OpenAI's training crawler. ChatGPT's search-backed answers use OAI-SearchBot. You can block GPTBot and allow OAI-SearchBot to keep showing up as a cited source.
Does Google-Extended affect my Google rankings?
No. Google states that Google-Extended has no impact on inclusion in Google Search and isn't a ranking signal. It controls whether your content is used to train and ground Gemini outside of Search; AI Overviews rely on Googlebot.
Do all AI bots respect robots.txt?
The automated crawlers from OpenAI, Anthropic, Google, Perplexity, Apple and Common Crawl say they honor it. Agents that visit a page because a user asked, such as ChatGPT-User or Perplexity-User, may not follow those rules, according to their own companies.
What's the difference between ClaudeBot and Claude-SearchBot?
ClaudeBot collects content that may be used to train Anthropic's models. Claude-SearchBot crawls to improve Claude's search results. Claude-User fetches pages when a user asks it to. Each one is blocked separately in robots.txt.
Does robots.txt protect my content from being copied?
No. robots.txt is a public request that legitimate bots respect, but it doesn't prevent technical access. For private or paid content, use authentication, and to limit snippets in Google, use nosnippet or max-snippet.
Message us on WhatsApp