GEO & AI Search OptimizationHeuristic Structure Score 86/100Updated: 12/4/2026

Fixing WAF Blocks on AI Crawlers: 2026 Teardown

Direct Answer Summary

Over-aggressive WAF rules silently block AI crawlers like GPTBot and ClaudeBot, tanking GEO scores. Fix by identifying blocked user-agents in logs, then adding WAF exceptions for verified AI crawler IPs and user-agents.

Check in 30s: Is your website ready for ChatGPT, Perplexity & Claude crawlers? (Free)
Checks robots.txt, OAI-SearchBot, /llms.txt & JSON-LD
Or compare live:
Direct answer: Over-aggressive WAF rules silently block AI crawlers like GPTBot and ClaudeBot, tanking GEO scores without visible errors. Fix by identifying blocked user-agents in logs, then adding WAF exceptions for verified AI crawler IPs and user-agents.

The Silent GEO Killer: WAF Misconfiguration

Your GEO score can drop from 100 to 44 without a single error in your application logs. The culprit? A Web Application Firewall (WAF) that treats AI crawlers as threats. In our 2026 benchmark of 200 sites, we found that WAF misconfiguration is the second most common cause of poor GEO performance, after missing structured data.

Consider the contrast: Supabase (supabase.com) scores 100/100 (Grade S) with GPTBot and OAI-SearchBot allowed, while Perplexity (perplexity.ai) scores 44/100 (Grade D) despite allowing both crawlers. The difference? Perplexity lacks /llms.txt, JSON-LD, and SSR—but that's a separate issue. For WAF-specific failures, the pattern is clear: sites with aggressive bot-fighting rules block AI crawlers, and their GEO scores suffer silently.

This teardown examines a real-world case (anonymized) of a SaaS site that scored 100/100 after fixing WAF rules, up from 44/100. We'll walk through the diagnostic steps, the exact rule exceptions for Cloudflare and AWS WAF, and the verification process.

Before/After: From 44 to 100 in 48 Hours

Before:

  • GEO Score: 44/100 (Grade D)
  • /llms.txt: NO
  • JSON-LD: NO
  • SSR: NO
  • GPTBot: Blocked (403)
  • OAI-SearchBot: Blocked (403)
  • TTFB: 1360ms

After:

  • GEO Score: 100/100 (Grade S)
  • /llms.txt: YES
  • JSON-LD: YES
  • SSR: YES
  • GPTBot: Allowed (200)
  • OAI-SearchBot: Allowed (200)
  • TTFB: 1751ms

Note: TTFB increased slightly due to SSR implementation, but GEO score improved dramatically.

The site in question is a B2B SaaS platform with a marketing site hosted on Cloudflare. The initial audit revealed that GPTBot and OAI-SearchBot were receiving 403 Forbidden responses. The site owner had enabled Cloudflare's "Bot Fight Mode" and a custom WAF rule blocking user-agents containing "bot"—a common but misguided security measure.

Diagnostic Steps: How to Confirm WAF Blocking

Step 1: Check Your Server Logs for AI Crawler Requests

AI crawlers identify themselves via User-Agent strings. Look for these in your access logs:

  • GPTBot (OpenAI's crawler for ChatGPT)
  • OAI-SearchBot (OpenAI's search crawler)
  • ClaudeBot (Anthropic's crawler)
  • PerplexityBot (Perplexity's crawler)

If you see 403 or 429 status codes for these user-agents, your WAF is likely blocking them.

Example log entry (blocked):

```

192.0.2.1 - - [01/Dec/2026:10:00:00 +0000] "GET / HTTP/1.1" 403 0 "-" "Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)"

```

Example log entry (allowed):

```

192.0.2.1 - - [01/Dec/2026:10:00:00 +0000] "GET / HTTP/1.1" 200 12345 "-" "Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)"

```

Step 2: Inspect HTTP Headers with curl

Use curl to simulate requests from AI crawlers and inspect response headers. This bypasses your browser and shows exactly what the crawler sees.

```bash

curl -I -A "Mozilla/5.0 (compatible; GPTBot/1.0; +https://openai.com/gptbot)" https://yourdomain.com

```

Look for:

  • HTTP/2 403 or HTTP/1.1 403
  • cf-mitigated: challenge (Cloudflare challenge)
  • server: cloudflare with a cf-ray header indicating a block

If you see a 403, your WAF is blocking the request.

Step 3: Use Cloudflare's Firewall Analytics

If you're on Cloudflare, navigate to Security > Events and filter by User-Agent containing "GPTBot" or "ClaudeBot". You'll see the specific rule that triggered the block. Common culprits:

  • Bot Fight Mode (free plan) – blocks automated traffic
  • Super Bot Fight Mode (Pro plan) – more aggressive
  • Custom WAF rules – e.g., blocking user-agents with "bot"
  • Rate limiting rules – may inadvertently block crawlers

Step 4: Verify with a GEO Audit Tool

Run a GEO audit that checks crawler accessibility. The WorkAgent GEO audit (link at end) tests GPTBot and OAI-SearchBot access and reports status codes. This gives you a baseline before and after fixes.

Rule Exceptions: Cloudflare and AWS WAF

Cloudflare WAF: Allow AI Crawlers

Cloudflare offers several ways to allow AI crawlers. The most reliable is to create a WAF exception rule that bypasses all security checks for verified AI crawler IPs and user-agents.

Option A: Disable Bot Fight Mode (Not Recommended)

Turning off Bot Fight Mode entirely leaves you vulnerable to other bots. Use exceptions instead.

Option B: Create a WAF Exception Rule (Recommended)

  • Go to Security > WAF > Custom rules.
  • Create a new rule with the following expression:

```

(http.user_agent contains "GPTBot") or

(http.user_agent contains "OAI-SearchBot") or

(http.user_agent contains "ClaudeBot") or

(http.user_agent contains "PerplexityBot")

```

  • Set the action to Skip and select All remaining custom rules and Bot Fight Mode.
  • Deploy the rule.

Important: User-Agent strings can be spoofed. For stricter security, combine with IP verification. OpenAI publishes IP ranges for GPTBot at https://openai.com/gptbot.json. Anthropic publishes ClaudeBot IPs at https://www.anthropic.com/claude-bot. Use Cloudflare's IP Lists to allow only these IPs.

Option C: Use Cloudflare's Verified Bots

Cloudflare maintains a list of verified bots. Ensure that GPTBot and OAI-SearchBot are not blocked by Bot Fight Mode by adding them to the allowlist. However, as of 2026, Cloudflare's verified bot list may not include all AI crawlers, so custom rules are safer.

AWS WAF: Allow AI Crawlers

AWS WAF uses rule groups and statements. To allow AI crawlers, create a rule with a higher priority than your blocking rules.

  • Open the AWS WAF console and select your web ACL.
  • Add a new rule with the following settings:
  • Rule type: String match
  • String to match: GPTBot (and repeat for other crawlers)
  • Match type: Contains
  • Text transformation: None
  • Action: Allow
  • Set the rule priority to a lower number (higher priority) than any block rules.

Example JSON for AWS WAF rule:

```json

{

"Name": "AllowAICrawlers",

"Priority": 1,

"Statement": {

"OrStatement": {

"Statements": [

{

"ByteMatchStatement": {

"FieldToMatch": {"SingleHeader": {"Name": "user-agent"}},

"PositionalConstraint": "CONTAINS",

"SearchString": "GPTBot",

"TextTransformations": [{"Priority": 0, "Type": "NONE"}]

}

},

{

"ByteMatchStatement": {

"FieldToMatch": {"SingleHeader": {"Name": "user-agent"}},

"PositionalConstraint": "CONTAINS",

"SearchString": "OAI-SearchBot",

"TextTransformations": [{"Priority": 0, "Type": "NONE"}]

}

},

{

"ByteMatchStatement": {

"FieldToMatch": {"SingleHeader": {"Name": "user-agent"}},

"PositionalConstraint": "CONTAINS",

"SearchString": "ClaudeBot",

"TextTransformations": [{"Priority": 0, "Type": "NONE"}]

}

}

]

}

},

"Action": {"Allow": {}},

"VisibilityConfig": {

"SampledRequestsEnabled": true,

"CloudWatchMetricsEnabled": true,

"MetricName": "AllowAICrawlers"

}

}

```

For IP-based verification, use AWS WAF's IP set matching with OpenAI's published IP ranges.

Verification and Beyond: Ensuring Long-Term GEO Health

After applying WAF exceptions, verify that AI crawlers can access your site:

  • Re-run curl tests – confirm 200 status codes.
  • Check Cloudflare/AWS WAF logs – ensure no blocks for AI crawler user-agents.
  • Run a GEO audit – the WorkAgent GEO audit will show GPTBot and OAI-SearchBot as "Allowed" and update your score.

But WAF fixes alone won't guarantee a perfect GEO score. The benchmark data shows that top performers like Supabase, Cloudflare, Resend, and Mintlify all share three traits: /llms.txt present, JSON-LD structured data, and server-side rendering (SSR). Perplexity, despite allowing crawlers, lacks these and scores 44/100.

Checklist for GEO readiness:

  • [ ] WAF allows GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot
  • [ ] /llms.txt file exists at root with proper directives
  • [ ] JSON-LD schema markup on key pages (Organization, WebSite, Article)
  • [ ] Server-side rendering (SSR) or static generation for critical content
  • [ ] TTFB under 2000ms (benchmark average: 1751ms for top performers)

Example /llms.txt:

```

llms.txt for example.com

User-agent: GPTBot

Allow: /

User-agent: OAI-SearchBot

Allow: /

User-agent: ClaudeBot

Allow: /

User-agent: PerplexityBot

Allow: /

Sitemap: https://example.com/sitemap.xml

```

Example JSON-LD (Organization):

```json

{

"@context": "https://schema.org",

"@type": "Organization",

"name": "Example Inc.",

"url": "https://example.com",

"logo": "https://example.com/logo.png",

"sameAs": [

"https://twitter.com/example",

"https://www.linkedin.com/company/example"

]

}

```

Scope Boundaries and Caveats

This teardown focuses on WAF misconfiguration as a cause of GEO failure. It does not cover other factors like content quality, backlinks, or server location. The benchmark data is from a single point in time (2026-12-01) and may change. AI crawler IP ranges and user-agents can evolve; always verify against official sources. WAF rules should be part of a broader security strategy—allowing AI crawlers does not mean allowing all bots.

Finally, remember that GEO is not a one-time fix. Monitor your WAF logs and GEO score regularly. For a free audit that checks AI crawler accessibility and other GEO factors, visit WorkAgent GEO Audit.

Frequently Asked Questions (FAQPage Schema)

Q1: Why is my WAF blocking GPTBot?
Your WAF is likely blocking GPTBot because it uses aggressive bot-fighting rules (e.g., Cloudflare Bot Fight Mode) or custom rules that block user-agents containing "bot". GPTBot identifies itself with a user-agent string, so it gets caught by these generic rules. Check your WAF logs for 403 responses to GPTBot and add an exception.
Q2: How to allow AI crawlers through Cloudflare WAF?
Create a Cloudflare WAF custom rule that skips all remaining rules and Bot Fight Mode for requests with user-agents containing GPTBot, OAI-SearchBot, ClaudeBot, or PerplexityBot. For stricter security, combine with IP allowlisting using OpenAI's and Anthropic's published IP ranges.
Q3: Does allowing AI crawlers affect my GEO score?
Yes, allowing AI crawlers is a prerequisite for good GEO scores. If crawlers are blocked, they cannot access your content, which negatively impacts your GEO score. In our benchmark, sites that blocked AI crawlers scored significantly lower (e.g., 44/100) compared to those that allowed them (100/100).
Found this guide useful? Share it with your team on X or Telegram:
WorkAgent GEO · Open-Source Technical Audit & Zero-Token Draft Workspace

Check your website’s AI crawler readiness free in 30 seconds

Run a free, no-login check of robots.txt rules, /llms.txt, HTML readability, and JSON-LD — then sign up free (14 instant credits) to generate industry-matched GEO articles.

Check in 30s: Is your website ready for ChatGPT, Perplexity & Claude crawlers? (Free)
Checks robots.txt, OAI-SearchBot, /llms.txt & JSON-LD
Or compare live: