Skip to content

CLI: fail the audit on WAF/bot challenge and block pages (all major perimeter providers), report blocked pages instead of auditing them #1253

Closed

Description

@nc9

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:

  • audit checks reachability, sees a WAF, prints Site 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)). detectChallenge only 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

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, markdown and html outputs
  • 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> protection warning 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

  1. added
    bug
    size: L
    on Oct 29, 2026
  2. added theissue type on Oct 29, 2026
  3. nc9 commented on Oct 29, 2026

    @nc9
    ContributorAuthor

    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:

    1. As technologies: the provider in front of the site (Cloudflare, Akamai, DataDome, Kasada/Vercel BotID, HUMAN/PerimeterX, Imperva, Sucuri, AWS WAF, Vercel Firewall, Fastly NGWAF and so on) is reported in technologies from response headers, cookies and markup, whether or not it blocked us.
    2. As blocks: when the response is that provider's block or challenge page, the audit fails as a block on the seed page, or marks the page blocked elsewhere. It never audits the block page.

    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.

    Response Count
    Cloudflare challenge, 403 1,039
    Cloudflare "Attention Required" block, 403 75
    Cloudflare challenge, 429 131
    Vercel Security Checkpoint, 429 12
    DataDome, 403 5
    PerimeterX px-captcha, 403 3
    Akamai "Access Denied", 403 1

    In 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:

    • Vercel sites using BotID are reported as "kasada", although they served normal 200 content. BotID is Kasada underneath: report it as a technology, but it isn't a block.
    • Sucuri is attributed to sites on Vercel and GitHub Pages.

    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:

    • Every block class above is detected from its captured sample, offline, with the right provider and status
    • Every negative sample above is NOT a block, and its provider still shows in technologies
    • Vercel BotID is reported as a technology, never as a block, when the response is 200 content
    • Sucuri is only attributed with Sucuri-specific headers or markup (x-sucuri-id, Sucuri/Cloudproxy, the firewall block page)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclisize: L

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions