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 Category | Exact Scanner Markers | Typical Root Cause | Failover Resolution |
|---|---|---|---|
| Login Wall | please log in, sign in to continue, login required | Expired session cookie or gated endpoint | Classify fake_200_login_wall & rotate account |
| Session Expiry | session expired, authentication required, unauthorized access | Stale upstream auth state | Fail over immediately to healthy vault slot |
| Account Gate | create an account to continue, log in to view | Soft paywall or registration modal | Fail over to alternate search/scrape provider |
| Empty React/Vue Shell | <div id="root"></div>, <div id="app"></div> | Static HTTP fetcher hit client-rendered SPA | Fail over to JS-rendered extractor |
| Empty Next.js / JS Gate | <div id="__next"></div>, javascript is required, loading... | Unhydrated bundle or JS-disabled warning | Reject 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
- Enable reject_login_wall: true and reject_empty_shell: true across all 5 capability pools.
- Pair payload size floors (16-48 bytes) with required_output_fields validation so empty JSON objects fail too.
- Monitor fake_200_login_wall frequency on GET /v1/router/metrics to identify vault cookies due for operator refresh.
- Never admit unverified HTTP 200 bodies into cross-tenant caches.
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
- Adaptive TTL Cache Invalidation & force_refresh Semantics — adaptive TTL cache invalidation and force_refresh API
- Prepaid Creem Credit Packs & HMAC-SHA256 Webhook Settlement — prepaid API credit packs HMAC-SHA256 webhook idempotency
- Zero Customer Trace Resale & Enterprise Privacy Architecture — zero customer trace resale privacy API failover gateway