deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

Cloudflare settings block AI crawlers on 34% of Cloudflare-fronted sites, invisible to robots.txt

A CDN-level scan of 513 sites found 34.3% of Cloudflare-fronted domains block at least one AI crawler at the HTTP layer, a gap robots.txt audits cannot detect.

Cloudflare settings block AI crawlers on 34% of Cloudflare-fronted sites, invisible to robots.txt

What the scan did

A developer writing on dev.to under the name juanauriti tested whether AI crawlers can actually fetch pages, rather than whether robots.txt says they may. The scan targeted 636 domains — 166 from the author's own audit history and 470 drawn from the Tranco ranking between positions 1,000 and 50,000 — of which 513 responded.

For every reachable site, the tool issued seven requests: one posing as Chrome and six posing as AI crawlers (GPTBot, OAI-SearchBot, PerplexityBot, Claude-SearchBot, Googlebot and Applebot). It then compared status codes and response body sizes. A site was counted as blocked when a crawler received a 403, 429, 451 or 503 while the browser request returned a 200.

Cloudflare-fronted sites block far more often

Of the 513 reachable domains, 172 sat behind Cloudflare. Fifty-nine of those — 34.3% — rejected at least one AI crawler at the HTTP level. Among the 341 non-Cloudflare sites, the rate was 12.0% (41 sites).

According to the post, the hundred blocked sites fall into two distinct patterns:

  • Broad bot protection, 55 sites. Here the browser request is refused as well. Forty of the 55 are Cloudflare-fronted, 49 blocked all six crawlers plus the browser identically, and 50 returned 403. The author reads this as the outward signature of Bot Fight Mode or a WAF managed rule: every non-browser agent gets the same treatment.
  • Targeted AI blocks, 45 sites. The browser passes while selected crawlers are refused. GPTBot was blocked in 38 of the 45 cases and PerplexityBot in 26; 19 are Cloudflare-fronted. Since only specific crawlers are affected, the author argues this points to deliberate configuration rather than an accident or a default.

Why robots.txt audits miss it

Cloudflare's Bot Fight Mode operates at the network edge and intercepts requests before they reach the origin server, so it never writes anything into robots.txt. A robots.txt review shows no Disallow rules, yet GPTBot still receives a 403. Of the 100 blocked sites in the sample, 55 also refused the browser, meaning a conventional robots.txt audit on those domains would have returned a clean result. The author credits a commenter, seotto, with first flagging that an edge challenge is structurally invisible to robots.txt checks.

How to check a site

The post recommends three steps. First, read robots.txt for Disallow entries under the crawler names above. Second, inspect the Cloudflare dashboard: under Security > Bots, standard Bot Fight Mode is expected to let verified bots such as GPTBot and Googlebot through, but Super Bot Fight Mode and custom WAF rules (under Security > WAF > Custom rules) can override that, so any user-agent-based rule is worth reviewing. Third, send a request to your own domain with the user agent set to GPTBot and print only the HTTP status code; a 403 indicates an edge block, while a 200 or 301 means the crawler gets through. Comparing against a browser user agent shows whether the rule is AI-specific or blanket.

Caveats

The method cannot yet detect sites that block unrecognised agents while admitting verified AI crawlers; confirming that would take a fourth request with a fabricated user agent, which the author lists as future work. One site in the sample, udayavani.com, returned 403 to the browser while all six AI crawlers received the page. The post also promotes the author's own audit service and an MIT-licensed CLI, so the research sits alongside a commercial tool — though the underlying method is reproducible with nothing more than curl.

Why it matters

robots.txt is widely treated as the control panel for AI visibility, and this data shows it is not the whole story: the real gatekeeper can be a WAF rule someone enabled long ago and forgot about. That cuts both ways. Publishers who want their content cited by ChatGPT, Perplexity and other answer engines may be silently excluded by an edge setting, while sites that deliberately want to opt out of AI crawling cannot rely on robots.txt alone if their CDN configuration disagrees. As AI assistants become a meaningful referral channel, verifying actual HTTP behaviour — not declared policy — is the only reliable check, and it takes a single curl command.

  • #cloudflare
  • #ai-crawlers
  • #robots-txt
  • #seo
  • #cdn