"Cloudflare is blocking my script" can mean four different things, and they are four different products. A Turnstile widget, a challenge page, a Waiting Room queue and a JavaScript Detections check all sit on the same network, but they decide different things, appear in different places, and produce different results. This guide shows how to tell them apart from a response alone, what each product is for, and which one a solver task addresses.
The four products
| Product | What you see | Markers | What it produces |
|---|---|---|---|
| Turnstile widget | A normal page with a form and a small widget | HTTP 200, a cf-turnstile element or turnstile.render(), api.js from challenges.cloudflare.com/turnstile/ |
A token for cf-turnstile-response |
| Challenge page | A full page saying "Just a moment…", instead of the page you asked for | HTTP 403, window._cf_chl_opt, a challenge-form whose action contains __cf_chl_f_tk= |
A cf_clearance cookie |
| Waiting Room | A queue page, "You are now in line" | Title contains "Waiting Room powered by Cloudflare" | Admission to the site, once your turn comes |
| JavaScript Detections (JSD) | Nothing at all | Script paths under /cdn-cgi/challenge-platform/, a quiet cf_clearance cookie |
A cf_clearance cookie with a bot-signal payload |
Everything above the first row is decided in front of the page: the response is a queue page or an interstitial instead of your content. Turnstile is a component inside a page that already loaded. JSD is the third shape: the page loads, and the check runs invisibly inside it.

Who turns each product on, and what it decides
Turnstile protects one form or action at a time. The site owner embeds the widget with a sitekey, the widget returns a token, and the site's own server verifies that token before it processes the submission. The decision is the site's, on its own backend.
Challenge pages are served by Cloudflare in front of a route, typically from WAF custom rules, rate-limiting rules or a security level. When the check passes, Cloudflare sets cf_clearance and the origin is served normally for as long as the clearance is valid. Cloudflare's Challenge Passage documentation gives the cookie a default lifetime of 30 minutes, with the site owner choosing the exact value, and Cloudflare can retire a clearance earlier when the session looks suspicious again.
Waiting Room is not a bot check at all. Cloudflare's Waiting Room documentation describes it as a virtual queue that routes excess visitors to a waiting room during traffic surges, to protect the origin from being overwhelmed. Your place in line is remembered across requests, so you do not lose it by waiting, and the room needs cookies to work. Every visitor that arrives at peak time queues, human or not.
JavaScript Detections is an invisible script Cloudflare injects into HTML page views. Its result lands in a cf_clearance cookie as a bot signal, but Cloudflare's JavaScript Detections documentation is explicit that it blocks nothing on its own: enforcement happens only if the site owner writes a WAF custom rule on the cf.bot_management.js_detection.passed field. A page that loads fine can still be running JSD.
Identify which one you have
Fetch the URL your script is blocked on and read the status code and the markup against the table. The markers come from Cloudflare's own documentation and from live pages, so treat a single marker as a hint and confirm in DevTools when it matters.
The order of checks matters, because the products overlap: a queue page or a challenge page can contain a Turnstile widget of its own, and a JSD script can run on a page that also answers 403. Whatever your own client receives is what counts, and it is also the page a solving task would be pointed at.
Two checks narrow a case down further. On a challenge page, window._cf_chl_opt.cType names the variant: managed clears itself after scripted checks, interactive shows a "Verify you are human" checkbox and may take several rounds, and non-interactive runs its checks without prompting. For JSD, filter the Network panel by challenge-platform and look for the script and its POST; the quiet cf_clearance cookie in the response is JSD's fingerprint.

Turnstile: a token for a form
If the page loads normally and a form carries a widget, you need a Turnstile token, not a cookie. Send websiteURL and websiteKey with the task type TurnstileTokenProxyLess, and put the returned token into the cf-turnstile-response field or the page's callback. Finding the sitekey, the action and cData is covered in the Turnstile guide, and the shorter Turnstile solver page has the checklist.
Challenge page: a cookie for the origin
A challenge page is served instead of your page, so there is no form to put a token into. The useful result is the cf_clearance cookie, often paired with __cf_bm; with it, requests to the same origin are served normally until it expires or is revoked.
The cookie is bound to the IP and the user agent that earned it. That is why the SurSolver task type for this check, CloudflareChallengeCookie, requires a proxy and has no proxyless form. Its parameters are:
| Field | Required | What it is |
|---|---|---|
websiteURL |
yes | The route that returns the challenge, not the site root; challenges apply per route |
proxy |
yes | A static or sticky proxy, kept for at least about three minutes |
pageData |
no | The HTML of the challenged URL as your client fetched it, through the same proxy, not base64; the <script> tags that load /cdn-cgi/challenge-platform/ are enough. Without it the solver fetches the page itself |
The solution carries cf_clearance, plus __cf_bm when the solve returned it. Send the browser's userAgent in the task, set cf_clearance on the origin and replay with that same user agent. When the solution also carries cookies, it maps every returned cookie name to its value. If a solve reports that no challenge is present, you sent the wrong route.
The full solve-and-replay, with a browser carrying the session, is a guide of its own: the Cloudflare Challenge Playwright integration walks the working flow step by step. The short version of the replay rules lives on the Challenge solver page.
Waiting Room: a queue, not a bot check
A waiting room admits visitors in turn, and how long you wait is decided by the room's queue, not by a risk score. There is no puzzle to solve and no check to pass: the correct behaviour is to hold your place in the queue the way a browser does, with its Waiting Room cookies, until admission. The public catalog (GET /v1/task-types) lists CloudflareChallengeCookie and TurnstileToken for Cloudflare and has no waiting-room type. If your target sits behind a queue, automation means waiting in line with the queue cookies intact, not solving something.
JSD: the silent signal
JSD is a script injected into HTML pages that fingerprints the browser and posts the result to the challenge-platform endpoint, whose response sets cf_clearance. Cloudflare's documentation states two facts that matter for automation. First, the first request to a site never carries JSD data: at least one HTML request must happen before the script is injected. Second, a failed JSD result blocks nothing by itself; a site must add a WAF custom rule to act on it.
So the symptom of a JSD-gated site is indirect: the page loads, and some later request is challenged or blocked by a rule. The catalog has no separate JSD task type, and the documentation does not state whether a CloudflareChallengeCookie solve covers a JSD-only gate. If you suspect JSD alone is blocking you, test a single task on the real route before you build on it.
Which task to send
- The page loads, with a widget in a form:
TurnstileTokenProxyLess, a token for the form. - The first request returns 403 and "Just a moment…":
CloudflareChallengeCookie, with a static proxy. - A queue page: no task type; wait in line with the Waiting Room cookies.
- Nothing visible and a challenge arrives later: identify the layer in the Network panel first; if it is the challenge page in the end, use
CloudflareChallengeCookie, and if it is JSD-only, test before you rely on it.
Common failures
| Symptom | Likely cause | Check |
|---|---|---|
| The solve answers "no challenge" | The wrong route in websiteURL |
Open the exact route in a browser; the site root may not be challenged at all |
A stale pageData was sent |
The HTML was fetched earlier, or through another proxy | Fetch the page again, through the solve's proxy, right before the task |
| The replay is treated as cookieless | A rotating proxy, or a different exit IP | Keep one static exit for the solve and every replayed request |
| The cookie is fresh but refused | A different user agent on replay, or a client whose TLS does not look like a browser | Replay with the task's userAgent; if it persists, carry the session in a real browser |
| The solve times out on an interactive page | Deadlines sized for the managed case | cType tells the variant; set the deadline for the slow case |
A task is charged when it is accepted, and a task that finishes as failed automatically returns its original charge once, so confirm the product and the route before you create one. For proxy formats, read proxies for CAPTCHA solving.