Skip to content

AI Crawlers and robots.txt: GPTBot, ClaudeBot and llms.txt Explained

By Serhat AksoyPublished: 4 min read
A small round black robot with lime eyes facing a black gate, thin lime light passing through some of the bars

AI crawlers are the bots that AI companies send to read websites, and they do not all do the same job. Some collect training data, some build the index behind AI search, and some fetch a page only when a user asks about it. Which ones you allow decides whether you can be cited in ChatGPT, Claude or Perplexity answers. This guide explains each crawler, gives a robots.txt you can adapt and covers the two problems robots.txt does not show: firewalls and JavaScript.

Three kinds of AI crawler

It helps to sort the bots by purpose before deciding anything:

  • Training crawlers collect pages to train future models. Blocking them is a business choice about how your content is used.
  • Search crawlers build the index that AI search tools draw on when they answer and cite sources. Blocking them removes you from those answers.
  • User-triggered fetchers load a page when someone pastes a link or asks the assistant to look something up. They behave more like a visitor's browser than a crawler.

Most companies now publish separate names for each job, so you can allow one and block another.

Robots.txt name Company Job
GPTBot OpenAI Training
OAI-SearchBot OpenAI ChatGPT search
ChatGPT-User OpenAI Fetches on a user's request
ClaudeBot Anthropic Training
Claude-SearchBot Anthropic Claude search
Claude-User Anthropic Fetches on a user's request
PerplexityBot Perplexity Search index
Google-Extended Google Gemini training and grounding
Applebot-Extended Apple Apple Intelligence training
CCBot Common Crawl Open dataset used by many models

OpenAI and Anthropic document their crawlers in OpenAI's bot overview and Anthropic's help centre. Both make the same point: blocking one of their bots does not block the others.

A small round black robot facing a row of arched gates, only two of them lit lime

A robots.txt for most business sites

For a business that wants to be found, a sensible default is to allow the search and user bots and decide separately about training. This example allows search everywhere and opts out of training:

User-agent: OAI-SearchBot
User-agent: Claude-SearchBot
User-agent: PerplexityBot
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: CCBot
Disallow: /

User-agent: *
Disallow: /admin/

Sitemap: https://www.example.co.uk/sitemap.xml

Two details catch people out. A bot obeys the most specific group that names it, so a bot listed in its own group ignores the rules under User-agent: *. And Google-Extended has nothing to do with Google Search: blocking it does not affect rankings or AI Overviews, which follow your normal Googlebot rules.

If you are happy for your content to be used in training, simply leave the second group out.

The firewall can block what robots.txt allows

Robots.txt is a request, not a lock, and the opposite problem is now common: a firewall refusing bots that robots.txt welcomes. Since 1 July 2025, Cloudflare blocks AI crawlers by default on newly added domains, and existing customers can switch the same block on with one click. Hosting firewalls and security plugins can do the same.

The result is a site whose robots.txt looks perfect but which returns a 403 error or a challenge page to every AI bot. You will not see this in your browser. The only way to know is to request the site with each bot's identity and look at the response.

If you use Cloudflare, check the AI crawler and bot settings in the dashboard and make sure the search bots you want are allowed.

JavaScript: the content AI cannot see

Google renders JavaScript before indexing a page. Most AI crawlers do not. Vercel's analysis of traffic across its network, The rise of the AI crawler, found that the major AI crawlers fetch JavaScript files but do not run them.

That matters for sites built as single-page apps, and for pages where prices, reviews or the main text load after the page opens. To an AI crawler, those pages can look almost empty. The fix is server-side rendering or static generation, so the main content, title and description are in the HTML the server sends. A quick test is to open the page with JavaScript switched off: whatever disappears is invisible to most AI bots.

A glowing lime document visible through a dark glass panel, with an empty frame beside it

What about llms.txt?

llms.txt is a proposed plain-text file at the root of your site that lists your most important pages with a one-line description each, written for language models rather than search engines. The llms.txt proposal is public and simple to follow.

Be realistic about it. It is not an official standard, and the large AI companies have not confirmed that their crawlers rely on it. It costs little to add, keeps your key pages in one tidy list, and does no harm, but it will not fix a site that blocks AI bots or hides its content behind JavaScript. Treat it as a tidy extra, not a strategy.

A short checklist

  1. Decide your policy: allow search and user bots, then choose on training.
  2. Write robots.txt groups by bot name, and keep a Sitemap line.
  3. Check your firewall or CDN is not blocking the bots you allowed.
  4. Make sure the main content is in the server HTML, not only rendered by JavaScript.
  5. Add Organization or LocalBusiness schema so AI can identify your business correctly.
  6. Optionally publish an llms.txt listing your key pages.

Check your site in a minute

Our free AI visibility checker tests robots.txt rules for 14 AI crawlers, requests your site with the identities of the main AI bots to spot firewall blocks, checks whether your content is readable without JavaScript, and drafts an llms.txt from your key pages.

Being reachable is the first step; being cited is the next. Our guide to AI search visibility covers how to structure content that AI answers quote. If you want us to handle both sides, see our AI search optimisation service.

Frequently asked questions

If I block GPTBot, will my site disappear from ChatGPT?

Not necessarily. OpenAI uses GPTBot to collect training data and a separate crawler, OAI-SearchBot, for ChatGPT search. Blocking GPTBot keeps your content out of future training without stopping OAI-SearchBot from finding your pages for search answers. If you want to be cited in ChatGPT search, make sure OAI-SearchBot is allowed, both in robots.txt and in your firewall.

Does blocking Google-Extended remove me from AI Overviews?

No. Google-Extended controls whether your content is used to train and ground Gemini models. AI Overviews are part of Google Search and are built from pages Googlebot crawls, so they follow your normal Googlebot rules. Blocking Google-Extended does not change your rankings or your eligibility for AI Overviews.

About the author

Serhat Aksoy

Founder, SEO strategist

Founder of AKSOY SOFTWARE LTD. Works on technical SEO, local SEO and multilingual site structures between the UK and Türkiye.

All articles →