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-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
Disallowrules 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.txtin 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.
Block Training, Allow Search
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:
- Find the bot. Use AI Crawl Control or your access logs to see which user agent is making the requests and to which URLs.
- Fix the URLs first. Heavy crawling is usually faceted search, calendars or internal search results. Disallow those paths in robots.txt for every bot.
- 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.
- Leave search engines out of it. Exclude verified search engine bots from the rule so Googlebot and Bingbot are never limited.
- 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.