Your robots.txt used to have one job: tell Google and Bing what not to crawl. Now a dozen AI companies send their own crawlers, and the rules you write decide whether ChatGPT, Claude or Perplexity can read your pages, quote them and link to you. Many sites block these bots by accident, usually through an old blanket rule or a security plugin. This guide explains what each bot does and how to choose.

Three kinds of AI crawler

Not every AI bot does the same thing, and treating them as one group is the most common mistake.

  • Search crawlers fetch pages so an AI search product can find and cite them. Blocking these means you can't appear as a source in that engine's answers.
  • User-triggered fetchers visit a page because a person asked an assistant about it right now, for example by pasting your URL into a chat.
  • Training crawlers collect pages to train future models. Blocking these is a legitimate business choice and doesn't remove you from AI search results.

The bots that matter

Search crawlers (keep these allowed if you want to be cited):

  • OAI-SearchBot (OpenAI): ChatGPT search results and citations.
  • Claude-SearchBot (Anthropic): Claude's search results.
  • PerplexityBot (Perplexity): Perplexity's search index.
  • Bingbot (Microsoft): Bing, which also powers Copilot answers.

User-triggered fetchers:

  • ChatGPT-User (OpenAI): pages fetched when a ChatGPT user asks about them.
  • Claude-User (Anthropic): the same for Claude.
  • Perplexity-User (Perplexity): the same for Perplexity.

Training crawlers and opt-out tokens:

  • GPTBot (OpenAI) and ClaudeBot (Anthropic): model training.
  • Google-Extended (Google): not a separate crawler but a robots.txt token that controls whether content Googlebot crawls can be used for Gemini training and grounding. Blocking it doesn't affect Google Search.
  • Applebot-Extended (Apple): the opt-out token for Apple's AI training.
  • CCBot (Common Crawl): an open web dataset many models are trained on.

Vendors add and rename agents from time to time, so check each company's crawler documentation when you review your file.

How robots.txt groups actually work

A crawler reads the most specific User-agent group that matches its name and ignores the * group once it finds one. That catches people out. If you write:

User-agent: *
Disallow: /admin/

User-agent: GPTBot
Allow: /

then GPTBot is allowed into /admin/, because its own group doesn't repeat the disallow. Every named group needs its own copy of the paths you want kept private.

The other classic accident is a leftover Disallow: / under User-agent: * from a staging site. It blocks every crawler, AI or not, and it's worth checking first.

A sensible default

For most businesses that want to be found and cited:

User-agent: *
Allow: /
Disallow: /admin/
Disallow: /cart/

# Training crawlers: allow or block, your choice
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: CCBot
Allow: /
Disallow: /admin/
Disallow: /cart/

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

If you'd rather not contribute to model training, change the training group to Disallow: /. Keep the search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Bingbot) allowed, because they're the ones that decide whether you can be cited.

robots.txt is a request, not a lock

Reputable crawlers follow robots.txt, but it doesn't enforce anything. Content that must stay private belongs behind a login. Firewalls and CDN "bot protection" settings can also block AI crawlers even when robots.txt allows them, so if a crawler can't reach you, check those too.

Check what you're actually blocking

  1. Open https://yourdomain.com/robots.txt and read every User-agent group.
  2. Look for a Disallow: / under *, and for named AI groups missing your private paths.
  3. Check your CDN or security plugin for AI-bot blocking.
  4. Re-check after every CMS or hosting change; they often rewrite this file.

TheFarFlow's AI search check reads your live robots.txt and shows, bot by bot, which answer engines can read your site. It's part of every scan, including the free trial.

Related: What is llms.txt, and do you need one? and How AI answer engines decide which brands to mention.

Frequently asked questions

No. GPTBot collects data for model training. ChatGPT search uses OAI-SearchBot, so you can block GPTBot and still be found and cited, as long as OAI-SearchBot is allowed.

Does blocking Google-Extended affect my Google rankings?

No. Google-Extended only controls whether content Googlebot crawls can be used for Gemini training and grounding. It doesn't change how Google Search crawls, indexes or ranks your pages.

Why is an AI crawler still blocked when robots.txt allows it?

Usually a firewall, CDN bot-protection setting or security plugin is blocking it before robots.txt is even read. Check those settings and your server logs for the crawler's user agent.

How often should I review my robots.txt?

After every CMS update, hosting or CDN change and site migration, and at least every few months, because AI companies add and rename crawlers.