Repository navigation
Description
Problem
When a site's perimeter security (WAF or bot manager) serves a challenge or block page, the CLI audits that page as if it were the site. Today:
auditchecks reachability, sees a WAF, printsSite uses <provider> protection - some pages may be inaccessible and results may be incomplete, and carries on. If the seed page itself is a challenge, the report scores and lists findings for the challenge page.- The crawler names only Cloudflare-style 403 managed challenges (
Blocked by <provider> challenge (403)).detectChallengeonly knows Cloudflare signals (cf-mitigated, challenge-platform script,__cf_chl_, "Just a moment" title). - Challenges served as 200, 202, 405 or 429, and block pages from other providers, go undetected.
Measured on a 36k-site batch audit run from datacenter IPs (Product Hunt launch study, 2026-10-29): of 88 WAF-fronted homepages, 11 returned 200 to a residential IP but 403 to the datacenter IP, 8 of them with cf-mitigated: challenge. An estimated 4-5% of the audits audited a challenge page rather than the site, with no error.
Expected
- Seed page blocked: when the seed/homepage response is a challenge or block page from a known perimeter provider, the audit fails with a dedicated error code and exit status, never a scored report. The message names the provider, the signal that matched, and the HTTP status, plus what to do about it: allowlist the
SquirrelScanuser agent, use authorised-crawl custom headers, use the cloud crawler, or ask the owner. - Some pages blocked: when later pages are blocked, they are excluded from rule evaluation (never audited as content) and reported as blocked, with provider and count. The report carries a coverage notice ("N of M pages were blocked by DataDome") and the
json/llmformats exposeblockedpages and reasons. - Provider coverage (block and challenge pages, across statuses 200, 202, 403, 405, 429 and 503):
- Cloudflare: managed and JS challenge, block,
cf-mitigated, Turnstile interstitial - Akamai Bot Manager
- DataDome (
captcha-delivery) - Kasada (
x-kpsdk-*, 429) - HUMAN / PerimeterX (
px-captcha,_pxhd) - Imperva / Incapsula (
_Incapsula_Resource) - Sucuri ("Sucuri WebSite Firewall - Access Denied")
- AWS WAF (challenge.js,
x-amzn-waf-action, 202/405) - F5 / Shape
- Vercel Security Checkpoint and attack challenge mode
- Netlify
- Fastly Next-Gen WAF
- Wordfence
- Radware
- Generic "Access denied" pages from a detected WAF
- Cloudflare: managed and JS challenge, block,
- Precision: detection uses provider-specific markers (headers, cookies, challenge scripts, titles), never a bare mention of a vendor name, and stays aligned with
waf-detect(cf. fix(waf-detect): a small Cloudflare page with the JavaScript Detections script is classified as a challenge page #666, fix(waf-detect): the /imperva/i content pattern attributes any page that mentions Imperva to Imperva #667, waf-detect: read vendor cookie names, attribute a bot vendor over its CDN, and stop calling CloudFront AWS WAF #750, waf-detect: an unclosed <code> hides the rest of the page from block-page wording #904 for past false positives).
Acceptance Criteria
- An audit whose seed page is a challenge or block page from any listed provider exits non-zero with a dedicated error code, and the message names the provider, the matched signal and the status
- No scored report is produced for a blocked seed page in any output format
- Blocked non-seed pages are excluded from rule evaluation and listed as blocked, with provider and count, in the console,
json,llm,markdownandhtmloutputs - Fixtures cover each listed provider's challenge or block page (headers + body), including the 200, 202, 405 and 429 variants, with a near-miss negative per provider (an ordinary page on that provider's CDN that mentions the vendor)
- The
Site uses <provider> protectionwarning remains for sites that serve real content behind a WAF - Docs (failed audits guide, crawler page) list the block error, what triggers it and the remedies
Activity
nc9 commentedon Oct 29, 2026
Scope addition from the maintainer: detect all perimeter providers' block pages, not just Cloudflare, in the CLI alone (offline, no cloud service). Do it in two layers:
technologiesfrom response headers, cookies and markup, whether or not it blocked us.Real-world data: fetched 2026-10-29 from a datacenter IP (OVH), against 13,357 launch-site homepages the CLI had flagged as WAF-fronted.
px-captcha, 403In total about 9.5% of WAF-fronted sites served a block or challenge. Today the CLI audits those pages.
Misattributions in current
waf-detect, found in the same data:Sanitised samples (headers and the first 64 KB of the body) are available to the maintainers: 6 per class, plus negatives (ordinary 200 pages behind Akamai, DataDome, Imperva, Kasada/BotID, Sucuri, and Cloudflare JavaScript Detections). Use them to build minimal synthetic fixtures. Don't commit the raw captures.
Added acceptance criteria:
technologiesx-sucuri-id,Sucuri/Cloudproxy, the firewall block page)fix(waf-detect): recognise a restyled HUMAN challenge page; cover the…
fix(waf-detect,tech-detect): a 200 is a block only on unambiguous blo…
fix(waf-detect): anchor the DataDome host, gate the HUMAN rule on a r…
feat(crawler,waf-detect): fail the audit on WAF and bot challenge pag…