EP 03 • CLOUDFLARE & WAF
403 Forbidden on Your SEO Audit? Don’t Allowlist User-Agent
Allowlisting a crawler by User-Agent string isn’t authentication—anyone can copy it. Audit behind Cloudflare safely without weakening WAF security.
Root Engineering Cause & Crawler Behavior
When Screaming Frog, Sitebulb, or a custom audit crawler hits HTTP 403 behind Cloudflare, teams often jump to adding a WAF Skip rule matching the User-Agent string.
User-Agent headers are trivially spoofable by any scraper or attacker, turning a temporary SEO audit exception into a permanent WAF bypass.
Instead, trace the exact Security Event Ray ID inside Cloudflare, apply a strictly scoped Custom Skip rule bound to your verified static audit IP + exact hostname, and remove it once the audit completes.
3-Step Engineering Fix
- 01. Trace the exact blocking rule/product inside Cloudflare Security Events
- 02. Scope a Custom Skip rule to your trusted static audit IP + exact hostname/paths (note: Free Bot Fight Mode cannot be skipped by custom rules)
- 03. Crawl at a controlled rate, keep logging enabled, and remove the exception after the audit
# Scoped WAF Custom Rule Expression
(ip.src eq 203.0.113.10 and http.host eq "example.com") Want This Audited on Your Production Site?
Message Eng. Khaled Gamal Khalaf directly on WhatsApp.
More Technical SEO Guides
EP 01 • CRAWL BUDGET
Your Content Isn’t the Problem—Your Crawl Paths Are
EP 02 • JAVASCRIPT SEO
HTTP 200 OK in Chrome—Dropped as Soft-404 by Google
EP 04 • AI SEARCH & GEO
GEO, AEO, LLMO, AI-SEO: Stop Chasing Acronyms
EP 05 • CORE WEB VITALS
Lighthouse 100—Yet Search Console Flags Core Web Vitals Poor?
EP 06 • SITE MIGRATIONS
The Redirect Chain & Loop Tax Slowing Users & Crawl
EP 07 • INTERNAL LINKING
In Your XML Sitemap—Still Invisible? The Orphan Page Trap