Is Cloudflare WAF blocking search and AI bots? How to test
Check whether Cloudflare WAF rules, Bot Fight Mode, country blocks or AI bot settings stop Googlebot, GPTBot or ClaudeBot, and fix the rule safely.
Par seops team, Türkçesi
Series: Working with the panel This post uses the Availability test tool in seops.
Short answer. Usually yes, by accident: a country block, a rate limit, a custom rule that challenges every bot, Bot Fight Mode or the Block AI bots setting can stop crawlers you want. Check Cloudflare's security events for the bot's user agent, let verified bots through before country and bot rules (cf.client.bot), decide per AI crawler whether you block training, search or user-triggered visits, then test from outside. Bot Fight Mode cannot be skipped with WAF rules; if it blocks something you need, it has to be turned off or replaced.
Cloudflare makes it easy to stop bad traffic, and just as easy to stop the crawlers that bring you search traffic and AI citations. Nothing breaks visibly: the site still loads for you, while Googlebot gets a challenge page and an AI assistant gets a 403. This post shows where the blocks usually come from, how to check them, and how to write rules that keep attackers out without shutting out search and AI bots.
Where accidental blocks come from
- Country rules. A rule that blocks or challenges whole countries also hits crawlers that leave from those countries.
- Catch-all bot rules. Expressions that challenge every request with a bot-like user agent, or every non-browser client.
- Rate limiting. Crawlers fetch many pages in a short time; a tight limit on all paths catches them.
- Bot Fight Mode. On the Free plan it challenges traffic that matches known bot patterns across the whole domain. Cloudflare’s Bot Fight Mode documentation notes that Skip, Bypass and Allow actions in WAF custom rules have no effect on it, because it runs in a separate pipeline.
- AI bot settings. Cloudflare’s Block AI bots setting sets an action per behaviour (Search, Agent, Training) and covers verified bots with that behaviour as well as matching unverified ones.
Step 1: look at the security events
In the Cloudflare dashboard open Security › Events and filter by user agent: Googlebot, bingbot, GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot. For each blocked or challenged request the event shows the service that acted (custom rule, rate limiting, Bot Fight Mode, managed rules) and the rule ID. Bot Fight Mode events are labelled “Bot Fight Mode” in the Service field.
If you see real crawler traffic being challenged, you have found the rule to fix.
Step 2: let verified bots through first
Cloudflare maintains a list of verified bots: crawlers it has confirmed through Web Bot Auth signatures, published IP ranges or reverse DNS. In rule expressions the field cf.client.bot is true for them. Two patterns cover most cases:
- Exclude verified bots from blocking rules. For a country block:
(ip.src.country in {"XX" "YY"} and not cf.client.bot). - Put an explicit allow or skip rule for verified bots above your challenge rules, so the order cannot surprise you later.
Do not allow by user agent alone. Anyone can send Googlebot in a header; the verified flag is what makes the exception safe.
If Bot Fight Mode is the source, there is no rule-based exception. Turn it off and handle bots with your own rules, or use Super Bot Fight Mode on a paid plan, which supports Skip rules.
Step 3: decide what you want from each AI crawler
AI companies run several crawlers with different purposes, and robots.txt and Cloudflare rules can treat them separately:
- OpenAI (crawler documentation): GPTBot collects training data, OAI-SearchBot surfaces sites in ChatGPT search, ChatGPT-User fetches a page when a user asks. OpenAI treats each setting independently.
- Anthropic (crawler documentation): ClaudeBot for training data, Claude-SearchBot for search quality, Claude-User when a person asks Claude a question. Anthropic says its bots honour robots.txt.
- Perplexity (PerplexityBot documentation): PerplexityBot builds Perplexity’s search index.
A common choice is to block training crawlers and allow search and user-triggered fetches, so assistants can still cite you. Whatever you choose, make robots.txt and Cloudflare say the same thing. The free AI crawler check reads your robots.txt for 200+ AI user agents, and the AI bot blocker generator writes matching robots.txt and WAF expressions.
Step 4: test from outside
Your own browser is the worst test: it is not a bot and it may be on a whitelisted network. Use two outside checks:
- Search Console URL Inspection, live test. It shows what real Googlebot receives for one URL. Bing Webmaster Tools has an equivalent URL inspection.
- An access test that requests your site as different clients and tells a Cloudflare block apart from your server’s own answer.
In seops the second check is the Security › Availability test tab. Once a day, or when you press Check, it requests your pages as search and AI crawlers, common client libraries, PageSpeed and a normal browser, and runs Cloudflare Request Trace scenarios for visitors from different countries. Each row says whether Cloudflare or your site answered. The WAF linter (13 checks) reads your rules from Cloudflare and gives a corrected full rule set to copy; the Security › WAF rules tab lists each rule next to the proposed version with the reason.
The limits are stated on the page, and they matter: seops requests leave Cloudflare’s network with a cf-worker header, so country and ASN rules can behave differently for real bots; Trace cannot simulate verified-bot status, because a bot identity is sent only as a user agent; and per-IP rate limits cannot be verified, because seops uses several egress IPs. Read the bot rows as “does a rule match this user agent”, and the Search Console live test as “does real Googlebot get through”.
Step 5: change the rule and check again
Apply the change yourself: copy it into Cloudflare, or, if your token has WAF edit permission, confirm it in the panel after the diff (you can roll it back for 7 days). AI agents never apply rules. Then run the live test in Search Console and press Check now in seops. Watch the security events for a few days: the challenged crawler requests should disappear, and attack traffic should still be blocked.
Try it
Apply for early access: new accounts open by invitation in order of registration; on invited accounts the first site is free for the first year, and the WAF review and availability test use no credits. You need a Cloudflare API token with read access; the token guide lists the scopes. Or open the availability test in the live demo. The Security check feature page explains the whole module, and AI crawlers shows which AI bots actually reached your pages.
Questions
If I block GPTBot, do I disappear from ChatGPT search?
Not necessarily. OpenAI documents separate user agents: GPTBot for training, OAI-SearchBot for search results and ChatGPT-User for user-initiated visits. OpenAI treats each setting independently, so you can block training and still allow search.
Why does a test with a Googlebot user agent get blocked when real Googlebot does not?
A rule that allows only verified bots blocks anything that merely claims to be Googlebot. Cloudflare verifies real crawlers by IP, reverse DNS or signatures. Use Search Console's URL Inspection live test to see what real Googlebot gets.
Does seops change my Cloudflare rules?
Only when you confirm it. By default seops reads your rules with a read-only token, tests them and proposes a corrected rule set; you apply it in Cloudflare and the next daily read marks it applied. With a token that has WAF edit permission you can apply a proposal from the panel after reviewing the diff, and roll it back for 7 days. AI agents never apply rules.