Login-Wall Scanner · SPA Shell Filter · Zero Cache Poison

Detecting HTTP 200 Login Walls & Empty SPA Shells in Proxy Responses

Two of the stealthiest data-quality bugs in AI pipelines are expired-session login walls and unhydrated JavaScript application shells returned with HTTP 200 OK. FuelRouter detects both deterministically in the first 2,048 bytes and fails over transparently.

Login-Wall & Empty SPA Shell Detection Signatures

Failure CategoryExact Scanner MarkersTypical Root CauseFailover Resolution
Login Wallplease log in, sign in to continue, login requiredExpired session cookie or gated endpointClassify fake_200_login_wall & rotate account
Session Expirysession expired, authentication required, unauthorized accessStale upstream auth stateFail over immediately to healthy vault slot
Account Gatecreate an account to continue, log in to viewSoft paywall or registration modalFail over to alternate search/scrape provider
Empty React/Vue Shell<div id="root"></div>, <div id="app"></div>Static HTTP fetcher hit client-rendered SPAFail over to JS-rendered extractor
Empty Next.js / JS Gate<div id="__next"></div>, javascript is required, loading...Unhydrated bundle or JS-disabled warningReject shell & route to browser-backed upstream

Stopping Silent Context Corruption in RAG & Research Agents

When a scraping API returns 'Please sign in to continue' or '<div id="root"></div>' with HTTP 200, an unprotected agent summarizes the login screen as if it were the target company's pricing page—hallucinating bad business decisions.

FuelRouter intercepts every marker listed in anti_fake_200_signatures.login_wall_markers and empty_shell_markers within the first 2,048 bytes, preventing empty shells from ever reaching callers or entering the 7d-30d cache.

Bridging Static Extractors to JS-Rendered Fallbacks

Static markdown fetchers are fast (1,400-1,850 ms p95) and cheap, but fail on client-side single-page applications. By automatically detecting empty SPA shells and failing over to scrape_browserbase_free or scrape_browser_use_free, FuelRouter delivers headless-browser reliability while paying static-reader latency on the majority of pages.

Every rejected shell is recorded in trace[] with its exact classification (fake_200_login_wall or fake_200_empty_shell) for complete observability.

Example Redacted Trace: Empty SPA Shell Recovered by JS Extractor

{
  "ok": true,
  "pool_id": "clean_scrape_extract",
  "served_by": "scrape_browserbase_free",
  "charged_micros": 12000,
  "trace": [
    {"step": 1, "upstream_id": "scrape_jina_reader_t10_slot", "outcome": "fake_200_empty_shell", "status_code": 200},
    {"step": 2, "upstream_id": "scrape_browserbase_free", "outcome": "hit", "status_code": 200}
  ]
}

Payload Hygiene & Shell-Prevention Checklist

Frequently Asked Technical Questions

Why check both HTML shell markers and JSON required_output_fields?

Some upstreams wrap an HTML login wall inside a JSON string field, while others return raw HTML directly. Checking both layers catches every variant.

Does a login-wall rejection bill the caller?

No. FuelRouter fails over to another upstream; if all upstreams return login walls, the caller pays $0.00 (HTTP 503).

How does empty-shell detection affect upstream health scores?

Each fake-200 increases ewma_fake_200_rate, lowering cleanliness (10% of dynamic_health_score) and prioritizing cleaner upstreams.

Live Try-Now Console & Machine Discovery

Test failover routing, dry-run quotes, and circuit breaker metrics on the live gateway or connect via JSON-RPC 2.0 MCP.

Related FuelRouter Architecture Guides