5-Stage Gate · 2,048-Byte Prefix Scanner · Zero Poisoning

Anti-Fake-200 HTTP Proxy Gateway: Blocking Silent Payload Corruption

Up to a third of real-world scraping and third-party API failures disguise themselves as HTTP 200 OK responses containing Cloudflare browser checks, expired-session login screens, or empty JSON error objects. FuelRouter intercepts and quarantines every fake-200 before billing or caching.

Five-Stage Anti-Fake-200 Detection Signatures

Verification StageInspect ScopeExample Trigger SignaturesClassification CodeRouter Action
1. HTTP Status GateStatus code header408, 429, 500, 502, 503, 504, 401, 403http_error_or_auth_rotFail over & increment failure counter
2. CAPTCHA ScanFirst 2,048 bytescf-turnstile, g-recaptcha, hcaptcha, arkose, datadome, geetestfake_200_captcha_soft_banQuarantine upstream (0.50 penalty), never bypass
3. Login-Wall ScanFirst 2,048 bytesplease log in, sign in to continue, session expired, login requiredfake_200_login_wallFail over & flag credential rotation needed
4. HTML / SPA ShellFirst 2,048 bytes<!doctype html, cf-browser-verification, <div id="root"></div>fake_200_empty_shellReject unhydrated shell & fail over
5. JSON Schema GateFull JSON objectok: false, success: false, error/detail keys, payload < min_bytesfake_200_json_errorBlock cache admission & try next upstream

Why HTTP Status Codes Alone Fail Production AI Pipelines

Reverse proxies that trust status_code == 200 blindly propagate garbage into retrieval-augmented generation indexes and downstream agent memory. Even worse, caching a single fake-200 poisons every tenant querying that canonical key for days.

FuelRouter aligns directly with steel_core_4/composite_verify.py to inspect headers, the first 2,048 bytes of raw payload text, minimum byte thresholds (16 to 48 bytes depending on pool), and pool-specific required output keys (content, vectors, results, markdown, domain).

Cache-Admission Immunity Against Upstream Degradation

Only payloads that pass all five verification stages are admitted to the cross-tenant archive cache. Upstream errors and fake-200 rejections never overwrite an existing verified cache record.

Each fake-200 hit increments the upstream EWMA fake_200_rate (10% weight in dynamic_health_score), naturally pushing noisy providers to the bottom of the routing table.

Redacted Trace Emitted on Fake-200 Detection & Automatic Failover

{
  "ok": true,
  "served_by": "scrape_jina_reader_t10_slot",
  "charged_micros": 12000,
  "trace": [
    {
      "step": 1,
      "upstream_id": "scrape_firecrawl_free",
      "outcome": "fake_200_html_marker",
      "status_code": 200,
      "latency_ms": 142,
      "circuit_state": "CLOSED"
    },
    {
      "step": 2,
      "upstream_id": "scrape_jina_reader_t10_slot",
      "outcome": "hit",
      "status_code": 200,
      "latency_ms": 618,
      "circuit_state": "CLOSED"
    }
  ]
}

Anti-Fake-200 Enforcement Rules Across All 5 Pools

Frequently Asked Technical Questions

Why limit HTML and CAPTCHA text scanning to the first 2,048 bytes?

Scanning the 2,048-byte prefix catches interstitial headers, script loaders, and login walls in sub-millisecond time while avoiding false positives deep inside legitimate scraped blog posts discussing CAPTCHAs.

Does FuelRouter solve CAPTCHAs when an upstream returns a challenge page?

Never. Solving or bypassing anti-bot challenges is a hard security redline. FuelRouter marks the upstream soft-banned and routes to an unchallenged peer.

What happens if an upstream returns HTTP 200 with {"ok": false, "error": "rate_limited"}?

Stage 5 rejects embedded boolean failure keys and failure status strings, skips cache admission, and fails over immediately.

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