Skip to content

AI crawlers and robots.txt: who fetches your site, how to allow them

Which AI crawlers exist and what each is for, how to allow search bots and block training, a sample robots.txt, Cloudflare's default block and checking logs.

Last reviewed

An AI product can only use your pages if its crawler can fetch them. Most AI vendors run several crawlers, and each has a different job. This guide lists the main ones, shows how to allow the bots that put you in AI search while declining the ones that collect training data, and explains how to check that it works. The token names and policies below were checked against each vendor’s own documentation on 22 November 2026 and change often, so re-check before you rely on them.

Three kinds of fetching

Vendors distinguish three purposes, and the distinction drives every decision below.

  • Training crawlers collect content that may be used to train models.
  • Search crawlers index pages so a product can find and list them as sources later. Blocking these usually means you stop appearing in that product’s answers.
  • User-triggered fetchers retrieve a page because a person asked a question or gave a link. Several vendors say robots.txt may not apply to these, because a user, not a crawler, started the request.

A robots.txt file is a public text file at the root of your domain that asks crawlers to stay out of parts of your site. It is a request, not a lock, and it is defined in the IETF standard RFC 9309. Reputable vendors follow it; it will not stop a crawler that ignores it.

The main crawlers

Vendor Token Purpose Notes
OpenAI OAI-SearchBot Surfaces sites in ChatGPT search Disallowing removes you from ChatGPT search answers, though links may still appear
OpenAI GPTBot Training of foundation models Disallowing signals your content should not be used for training
OpenAI ChatGPT-User User actions in ChatGPT and custom GPTs OpenAI says robots.txt rules may not apply
Anthropic Claude-SearchBot Improves search result quality Blocking can reduce visibility in Claude search
Anthropic ClaudeBot Training Blocking excludes future material from training
Anthropic Claude-User Fetches pages for a user’s question Blocking may reduce visibility in user-directed search
Perplexity PerplexityBot Surfaces sites in Perplexity results Perplexity says it is not used for training foundation models
Perplexity Perplexity-User User actions Perplexity says it generally ignores robots.txt
Google Googlebot Google Search, which feeds AI Overviews and AI Mode Blocking removes you from Search
Google Google-Extended Robots.txt token only: training and grounding use Does not affect Search inclusion or ranking
Microsoft bingbot Bing index, which Microsoft says grounds AI assistants See below
Apple Applebot-Extended Controls use of Applebot-crawled content for model training Does not crawl itself
Meta meta-externalagent Training or product indexing
Meta meta-webindexer Meta AI search results
Meta meta-externalfetcher User-requested fetches Meta says it may bypass robots.txt
Common Crawl CCBot Open web archive used by many parties Common Crawl is a nonprofit repository

Three points need explanation.

Google. AI Overviews and AI Mode draw on the Google Search index, and Google states there are no additional requirements beyond being indexed and eligible to show with a snippet. Google-Extended does not change that. Blocking it affects whether crawled content may be used for training and grounding in other Google AI products, and Google says it does not affect Search inclusion. If you want out of AI Overviews, the controls are snippet controls such as nosnippet or max-snippet, which also affect classic results.

Microsoft. Microsoft’s AI products use the Bing index. In an announcement covered by Search Engine Roundtable, Bing described separate preferences for AI training and AI grounding, with the new preferences honored from 1 February 2027. The details are still rolling out, so check Bing Webmaster Tools for the current options.

Anthropic. Besides robots.txt, Anthropic says that from 30 October 2026 it recognizes a machine-readable “no AI training” preference signal based on an IETF draft. It also says that a robots.txt rule naming ClaudeBot takes priority over the general setting. Anthropic’s list does not contain the older anthropic-ai token, so a rule written only for it does not address its current crawlers.

A sample robots.txt

This example lets AI search products find you and asks training crawlers to stay out. Adjust it to your decision; it is not advice to block training.

# Allow AI search and user-triggered fetching
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: Claude-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: meta-webindexer
Allow: /

# Decline training use
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: Applebot-Extended
Disallow: /

User-agent: meta-externalagent
Disallow: /

User-agent: CCBot
Disallow: /

# Everyone else, including Googlebot and bingbot
User-agent: *
Disallow: /admin/

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

A crawler follows the most specific group that names it, so a named group replaces the * group for that bot instead of adding to it. If you disallow some paths for everyone, repeat them in the named groups. Vendors say changes can take about 24 hours to take effect because crawlers cache the file.

The Cloudflare default-block issue

If your site sits behind Cloudflare, robots.txt may not be the whole story. On 1 July 2025 Cloudflare announced that it blocks AI crawlers by default, and asks every new domain whether to allow them at sign-up. On 1 July 2026 it moved to controlling AI bots by behavior: Search, Agent and Training, each set to allow, block, or block only on pages that show ads. Its changelog says that from 15 September 2026, new domains get Training and Agent bots blocked on pages that display ads, with Search allowed. Multi-purpose crawlers that combine Search and Training are affected by the Training block.

A Cloudflare customer can therefore have a clean robots.txt and still return errors to a bot. To check:

  1. Open the AI bot settings in your Cloudflare dashboard under security settings, and read what is set for each category.
  2. Look at Cloudflare’s security events for blocked requests from the bots in the table.
  3. If you also use a managed robots.txt feature, open your live robots.txt and confirm it says what you intend. Cloudflare can write entries into it.

Other hosts, firewalls and bot-protection tools can do the same. Ask your provider.

Verify with your server logs

Logs show what actually happened. Search your access logs for the token names, for example OAI-SearchBot or Claude-SearchBot, and look at the status codes. A 200 means the page was served. A 403 or 429 means something blocked or throttled the request.

User-agent strings can be faked, so confirm that a request is genuine by comparing its IP address with the vendor’s published list. OpenAI publishes JSON lists for its bots. Anthropic publishes one at claude.com/crawling/bots.json, and Perplexity at perplexity.ai/perplexitybot.json. Common Crawl advises a reverse and forward DNS check for CCBot. Anthropic warns against blocking by IP address as an opt-out, since that can stop it from fetching your robots.txt.

Seeing no requests from a bot is not proof of a block. New or small sites may simply not have been visited yet. Check that bots can fetch robots.txt itself, and that your key pages return text without needing JavaScript, which Vercel reported that major AI crawlers did not execute as of December 2024. See JavaScript rendering.

The next steps are in Where to start with AI search visibility. An optional addition is an llms.txt file. For background, see AI crawler.

This page was last reviewed on 22 November 2026.