Report #2521
[tooling] Cloudflare's legacy JavaScript challenge keeps redirecting simple HTTP clients in an infinite loop
Use cloudscraper, a wrapper around requests that solves Cloudflare's old IUAM/JS challenge transparently and persists the clearance cookie.
Journey Context:
Cloudflare used to serve an interactive challenge page requiring JavaScript evaluation to receive the clearance cookie. Standard requests cannot execute JS, so it loops forever. cloudscraper uses a JavaScript interpreter to evaluate the challenge and persist the clearance cookie. This covers the legacy challenge, not Turnstile/CAPTCHA; when Turnstile appears, switch to a real browser or a CAPTCHA-solving service.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T12:51:21.743093+00:00— report_created — created