Glossary
Managed challenge
A managed challenge is a Cloudflare interstitial page that stands in front of a site and lets Cloudflare decide, per visitor, how hard to check before letting the request through.
Definition
Cloudflare protects sites at the edge, before a request reaches the origin server. When a firewall rule, bot score or rate rule decides a request deserves a closer look, it can respond with one of several actions. The managed challenge is the one Cloudflare recommends today: instead of the site owner choosing a fixed puzzle, Cloudflare's own logic chooses the lightest check that is likely to separate a person from a script.
For most real browsers this means a short page that says the site is verifying the connection, runs some JavaScript, and reloads into the real content within a few seconds. For a smaller group it adds a Turnstile style checkbox. Plain HTTP clients without a JavaScript engine never get past it.
How to recognise it
- The response status is 403 or 503 instead of 200, with a
server: cloudflareheader and acf-rayheader. - The HTML is short, with a title such as "Just a moment..." and scripts loaded from
/cdn-cgi/challenge-platform/. - A
cf-mitigated: challengeheader appears in the response on current versions. - After a pass in a real browser, a cf_clearance cookie is set for the domain.
This is different from a Turnstile widget, which sits inside a page that already loaded with status 200. If the whole page is replaced, it is a challenge; if a box sits in a form, it is Turnstile.
What it checks
Cloudflare does not publish the full list, and it changes often. Known areas include whether JavaScript runs at all, whether browser APIs behave the way the claimed user agent's browser would, the TLS and HTTP/2 fingerprint of the connection, and the reputation of the IP address. The page may also run a proof-of-work style computation. All of this happens in seconds and leaves behind a single cookie.
The result: cf_clearance
A successful challenge sets cf_clearance. Later requests that carry it, from the same IP and with the same user agent, skip the check until it expires. That pairing is the key point for automation: the cookie is only useful from the network identity that earned it.
Solving it through the API
GateSolver handles the page with the Cloudflare Challenge task. Because the cookie is bound to an IP, the task requires your proxy, and the solver passes the check through it:
{"clientKey": "YOUR_API_KEY", "task": {"type": "AntiCloudflareTask",
"websiteURL": "https://catalog.example.org/en/products", "proxy": "http://shopper:s3cret@203.0.113.10:8080"}}
The solution contains cookies.cf_clearance and the userAgent used. Send your next requests through the same proxy, with that exact user agent and the cookie, and the site loads normally. The task costs $0.84 per 1,000 solved and typically completes under 10 seconds.
Keeping the session alive
Treat the clearance like a short session. Store it with the proxy and user agent as one unit, reuse it for the requests that follow, and request a new one when you start getting challenge pages again. Rotating proxies between requests throws the cookie away, so use a sticky session for the duration of a clearance. The guide on reusing cf_clearance shows a small cache for this.
Other Cloudflare actions
The older "JS challenge" and "interactive challenge" actions still exist on some sites and behave much like a managed challenge from the outside. Block pages with error codes such as 1020 are different: they are firewall decisions, not checks, and no challenge solve changes them. If you are unsure which one you are seeing, the guide to identifying Cloudflare protection lists the signs.
Common questions
Why does my HTTP client get a 403 from Cloudflare?
The site is likely answering with a challenge page. Without a JavaScript engine your client cannot pass it, so it needs a clearance cookie earned through a browser or a solving task.
Is a managed challenge the same as Turnstile?
No. Turnstile is a widget inside a page; a managed challenge replaces the whole page and ends with a cf_clearance cookie.
Why does the challenge task need my proxy?
Cloudflare binds the clearance cookie to the IP that passed the check, so the solve has to happen from the address you will use afterwards.
Can I use the cookie with a different user agent?
Usually not. Send the userAgent returned with the solution on every request that carries the cookie.
Does a solve help with error 1020?
No. Error 1020 is a firewall block decided by a rule, not a challenge, so there is nothing to pass.
Keep reading
- cf_clearance cookieThe cookie Cloudflare sets after a passed challenge, why it only works from one IP and user agent, and its lifespan.
- Tell Turnstile, managed challenges and blocks apartStatus codes, headers, page markers and cookies that separate a Turnstile widget, a challenge page and a hard Cloudflare block.
- How do automation scripts get past Cloudflare checks?Cloudflare uses Turnstile widgets and full challenge pages; scripts handle the first with a token and the second with a cookie.
- Cloudflare Challenge solver$0.84 per 1,000 tasks, answers under 10 seconds.