AI Crawler Access: Cloudflare, robots.txt & llms.txt

How to control which AI crawlers can reach your site using Cloudflare, robots.txt and llms.txt.

  • Cloudflare and robots.txt can each block or allow AI crawlers independently, so check both together. Cloudflare is the one most people forget.
  • Since July 2025, Cloudflare blocks AI crawlers by default on newly added domains via two settings under Security > Settings: 'Block AI bots' (blocks at the edge) and 'Managed robots.txt' (adds Disallow rules you only see by loading /robots.txt in a browser).
  • If you want to be cited in AI answers and either Cloudflare setting is on, that is likely why you aren't. Check the AI Crawl Control dashboard before changing anything.
  • AI companies run separate bots for training (GPTBot, ClaudeBot, Google-Extended), search and citations (OAI-SearchBot, Claude-SearchBot, PerplexityBot), and user-triggered fetches (ChatGPT-User, Claude-User, Perplexity-User). You can treat each type differently.
  • A common setup is to block training bots and allow search bots. To make it work, turn off Cloudflare's Block AI bots and Managed robots.txt, or use a WAF custom rule that names only the training bots.
  • Google-Extended is only a robots.txt token controlling Gemini use. It does not affect Google Search or AI Overviews, which use Googlebot.
  • robots.txt is a request, not enforcement. Major crawlers follow it, but user-initiated fetches and unknown scrapers may not. Anything that must be enforced belongs in Cloudflare.
  • llms.txt does nothing for access control. It can't allow or block crawlers, and major AI crawlers don't request it in volume, so don't expect it to change crawling or citations.
  • If AI crawlers strain your server, slow them before blocking: identify the bot, disallow heavy paths like faceted search and calendars, add a Cloudflare WAF rate limit that returns 429 (not 403 or 404), exclude verified search engine bots, and cache more.
  • Verify what each bot actually gets with curl user-agent tests and /robots.txt, but confirm in AI Crawl Control, since Cloudflare also verifies real bots by IP.

AI crawlers can be blocked by Cloudflare or robots.txt without the site owner knowing, or allowed in numbers that strain the server.

If you want to control which AI crawlers reach your site, check Cloudflare and robots.txt together. Either one can block a bot the other allows, and Cloudflare is the one people forget.

Three Kinds of AI Crawler

Each AI company runs separate bots for separate jobs, and you can treat them differently:

Company Training Search & Citations Fetches for a User
OpenAI GPTBot OAI-SearchBot ChatGPT-User
Anthropic ClaudeBot Claude-SearchBot Claude-User
Perplexity PerplexityBot Perplexity-User
Google Google-Extended Googlebot

Google-Extended isn’t a separate crawler. It’s a robots.txt token that controls whether your content is used for Gemini. It has no effect on Google Search or AI Overviews, which use Googlebot.

Check Cloudflare First

Since July 2025, Cloudflare blocks AI crawlers by default on newly added domains. Two settings do it, both under Security > Settings in the bot traffic section:

  • Block AI bots. Blocks known AI crawlers at the edge, either on all pages or only on hostnames with ads. The request never reaches your server.
  • Managed robots.txt. Cloudflare adds its own Disallow rules for AI crawlers to the top of your robots.txt. The file on your server doesn’t change, so you only see it by loading /robots.txt in a browser.

The AI Crawl Control dashboard shows which AI crawlers are requesting your site, how often, and whether each is allowed or blocked. Look there before changing anything.

If you want to be cited in AI answers and one of these is on, that’s why you aren’t.

The most common setup I use: keep content out of training, stay visible in AI search.

User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: Google-Extended
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: Claude-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

For this to work, turn off Cloudflare’s Block AI bots and managed robots.txt, since they block the search bots too. If you need blocking at the edge, write a WAF custom rule that names only the training bots.

robots.txt is a request, not a block. The major crawlers follow it. Fetches made on behalf of a user don’t always, and unknown scrapers ignore it. Anything that has to be enforced belongs in Cloudflare.

What llms.txt Does

Nothing for access. llms.txt is a proposed file that lists your important pages for AI tools. It can’t allow or block a crawler, and the major AI crawlers don’t request it in any volume. I looked at the evidence in the llms.txt myth. Add one if you like, but don’t expect it to change what gets crawled or cited.

Rate Limit Without Hurting SEO

When AI crawlers strain the server, slow them down before you block them:

  1. Find the bot. Use AI Crawl Control or your access logs to see which user agent is making the requests and to which URLs.
  2. Fix the URLs first. Heavy crawling is usually faceted search, calendars or internal search results. Disallow those paths in robots.txt for every bot.
  3. Add a rate limiting rule in Cloudflare’s WAF that matches the crawler’s user agent and returns a 429 above a set number of requests per minute.
  4. Leave search engines out of it. Exclude verified search engine bots from the rule so Googlebot and Bingbot are never limited.
  5. Cache more. If crawlers hit cached HTML, they cost almost nothing. See Cloudflare caching for WordPress.

Use a 429 for rate limits, not a 403 or 404. A 429 tells a crawler to come back later. The others tell it the page is gone.

Check What Each Bot Gets

curl -s -o /dev/null -w "%{http_code}\n" -A "GPTBot" https://example.com/
curl -s -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://example.com/
curl -s https://example.com/robots.txt

A user agent test only shows rules that match on the name. Cloudflare also verifies real bots by IP, so confirm the result in AI Crawl Control. If you want to go further than access, I’ve written about serving markdown to AI bots.

Resume