Skip to content
FunnelGuard

Fix guide by FunnelsGuard

AI crawlers blocked by Cloudflare or WAF: how to find and fix it

SEO-384High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

AI assistants such as ChatGPT, Claude and Perplexity use crawlers (automated visitors) to read web pages. A CDN (content delivery network) or WAF sits in front of your site and decides which requests get through. If its bot settings treat AI crawlers as unwanted, they receive an error such as 403 or a challenge page instead of your content.

Why it costs you leads or sales

If AI crawlers cannot fetch your pages, assistants cannot quote your prices, services or FAQs. They answer from third-party sites, older copies or guesses instead. People who ask an assistant for a supplier or product in your category may never see your brand.

Where the block happens
  1. User asks an AI assistantAsks for a supplier or product in your category
  2. AI crawler requests your pageGPTBot, OAI-SearchBot, PerplexityBot and others
  3. CDN or WAF bot ruleReturns 403 or a challenge
  4. Page content readNever reached
  5. Your brand citedCompetitors are cited instead

The crawler is stopped at the edge, so your content and robots.txt are never read.

How to check if your site has it

Check for an edge block
  1. Review your CDN or WAF settingsCloudflare

    In Cloudflare, open the dashboard for your domain and look under Security (Bots) and any AI crawler or AI Crawl Control section. Note whether AI bots are set to block, and whether a managed robots.txt is adding disallow rules.

  2. Read the security events log

    Filter the firewall or security events for blocked requests and look for user agents containing GPTBot, ClaudeBot, PerplexityBot, OAI-SearchBot or Applebot.

  3. Test with the crawler's user agent

    Request your homepage with an AI crawler user agent and compare the status code with a normal request. Note that real crawlers are also verified by IP address, so a test from your own machine can differ from the real thing. A 403 or a challenge page is a strong warning sign.

  4. Check your server logs

    Search raw logs for AI user agents. Many 403 or 429 responses, or no requests at all, point to an edge block.

Compare responses with an AI user agentbash
# Normal request
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/

# Pretend to be GPTBot
curl -s -o /dev/null -w "%{http_code}\n" -A "GPTBot" https://example.com/

# Pretend to be PerplexityBot
curl -s -o /dev/null -w "%{http_code}\n" -A "PerplexityBot" https://example.com/

How to fix it

Common AI crawlers and what they do
CrawlerOperatorTypical purpose
GPTBotOpenAITraining data
OAI-SearchBotOpenAIChatGPT search results
ChatGPT-UserOpenAIFetches a page when a user asks
ClaudeBotAnthropicTraining data
PerplexityBotPerplexitySearch index for answers
ApplebotAppleSearch and Siri features
Allow AI crawlers by platform
  1. Open your CDN or WAF bot settings

    In Cloudflare, go to the domain, then Security and Bots, and find the AI bots or AI Crawl Control option. Switch it from block to allow for the crawlers you want, or set per-crawler rules where offered.

  2. Remove or edit custom firewall rules

    Look in Security rules (WAF custom rules) for rules matching user agents such as GPTBot or containing 'bot' and either delete them or add an exception for the crawlers you want.

  3. Check the managed robots.txt

    If your CDN injects AI disallow lines into robots.txt, turn that feature off or review the output at yoursite.com/robots.txt so it matches your decision.

  4. Check rate limits

    Rate limiting rules can return 429 to crawlers that fetch many pages. Raise the limit or add an exception for verified crawlers.

Edge settings before and after

Before

  • AI bots set to block at the CDN
  • Search crawlers get 403 responses
  • Robots.txt says allow but is never read
  • Assistants cite other sites

After

  • Wanted AI crawlers allowed explicitly
  • Pages return 200 to verified crawlers
  • Robots.txt and edge rules agree
  • Your pages can be quoted and linked

How to confirm it's fixed

Confirmation checklist
  • CDN AI bot setting no longer blocks the crawlers you want
  • No custom WAF rule matches those user agents
  • curl with an AI user agent returns 200 on key pages
  • Security events stop showing blocks for those crawlers
  • Server logs show 200 responses to AI user agents over the next days
  • robots.txt output matches your decision

How to prevent it happening again

How a silent block usually appears
  1. Day 1

    Someone switches on a bot-blocking or AI block setting to reduce scraping

  2. Week 1

    AI crawlers start receiving 403 responses

  3. Month 1

    Assistants stop citing fresh content from your site

  4. Month 2

    Someone notices competitors in AI answers and checks the settings

  5. After fix

    Crawlers get 200 responses again and citations can return

Habits that prevent a repeat
  • Write down which AI crawlers you allow and why
  • Record who changes CDN and WAF settings
  • Re-check bot settings after plan changes, migrations or new security plugins
  • Review security events for AI user agents each month
  • Run the curl comparison after any firewall change

How FunnelGuard handles this

FunnelGuard does not check this yet. Detecting AI crawler blocks at the CDN is a possible future check, not a current feature.

What FunnelGuard does today is run your real customer journeys (lead forms, checkouts, booking and chat buttons) on a schedule from the EU or the US, check each step and the tracking hits, and re-check failures from a second region before sending one alert. That helps if a firewall rule also breaks a form or a page for real visitors, but it does not test how AI crawlers are treated.

Questions people ask

Why is Cloudflare blocking AI crawlers on my site?

Cloudflare offers settings that block AI bots or add AI disallow rules to robots.txt, and some may have been switched on by you, a colleague or a default. Check the Security and Bots area and any AI Crawl Control section in your dashboard, and review custom WAF rules.

Can robots.txt allow GPTBot while a firewall still blocks it?

Yes. Robots.txt is only a request that crawlers read, while a firewall rule is enforced before the crawler reaches any file. If the CDN returns 403 or a challenge, the allow rule in robots.txt never matters.

How do I check if GPTBot is blocked by my CDN?

Compare a normal request with one using the GPTBot user agent, for example with curl -A GPTBot, and check your CDN security events for blocked requests. A 403 for the bot but 200 for normal traffic points to a user agent rule. Real crawlers may also be checked by IP, so confirm with logs.

How do I allow AI crawlers in Cloudflare?

Open your domain's Security settings, find the bots or AI crawler controls, and set the crawlers you want to allow. Then check custom WAF rules and rate limits for matches on those user agents, and turn off any managed robots.txt lines that contradict your choice.

Should I block AI crawlers at all?

It depends on your goals. Blocking training crawlers can protect content from model training, while allowing search and citation crawlers like OAI-SearchBot or PerplexityBot helps you appear in answers. Decide per crawler rather than blocking everything.

Will unblocking AI crawlers get me cited right away?

No. Crawlers return on their own schedule, and being fetched does not guarantee a citation. Unblocking removes a barrier, and your content still has to be clear, useful and quotable.

Does FunnelGuard detect AI crawler blocks?

Not yet. It is a possible future check. FunnelGuard currently monitors customer journeys, tracking hits and lead delivery, so use CDN logs and curl tests to watch AI crawler access.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.