Cloudflare Turnstile invisible widget demo
This page carries one live Cloudflare Turnstile widget in invisible mode. Nothing appears on the page, yet the form below receives a token a few seconds after it loads. Solve it here or with a ZeroCaptcha task, then check the token with Cloudflare.
The widget
LiveThis widget's settings
0x4AAAAAAFMVENeLHUzuPJpU- Mode
- invisible
- Appearance
- always
- Rendering
- implicit
- Task
- TurnstileTaskProxyless
The verdict
The token goes to this site's API, which asks Cloudflare's siteverify with the widget's secret key. The reply is shown as it came.
No token checked yet
Solve the widget and press Verify, or paste a token a task returned for this page.
- success
- not checked yet
- hostname
- not checked yet
- challenge_ts
- not checked yet
- action
- not checked yet
- cdata
- not checked yet
- error-codes
- not checked yet
- Widget
- not checked yet
- Round trip
- not checked yet
What the error codes mean
The token you checked
Solve this page with the API
The complete createTask request for this page, then getTaskResult every 2 seconds until it is ready, then the result used as the page uses it. Set ZEROCAPTCHA_KEY to your API key.
- type
- TurnstileTaskProxyless, or TurnstileTask with your proxy
- websiteURL
- https://zerocaptcha.io/captcha-test/cloudflare-turnstile-invisible
- websiteKey
- 0x4AAAAAAFMVENeLHUzuPJpU
- metadata.action
- This widget sets none
- metadata.cdata
- This widget sets none
- proxy
- Only with TurnstileTask: http://user:pass@host:port
- callbackUrl
- Optional: called with the result when the task ends
- Idempotency-Key
- A header: sent again within 24 hours, it returns the first task
A task is charged at the listed price when it succeeds; a failed one costs nothing. The same task over REST, POST /v1/tasks, is inSolving Cloudflare Turnstile.
What this widget is
Invisible mode draws nothing. The widget runs in the background as soon as it renders, and the page receives the token through the hidden cf-turnstile-response field or the widget's callback. Cloudflare requires a site that uses it to reference its Turnstile privacy addendum in the site's own privacy policy, which is often the only visible trace.
The widget still has a sitekey, and still sits in the page as a cf-turnstile element or a turnstile.render() call, so it is found the same way as a visible one.
Bring a token from elsewhere: the Cloudflare Turnstile token checker.
How to use the result
The task's result is a token: the same value a browser puts in the form's hidden cf-turnstile-response field. Send it where the page's own form sends it, in the same field. On this page that is the check at the top, beside the widget, which asks Cloudflare's siteverify about it with this widget's secret and shows the verdict; a task's token goes in its token box.
A token passes siteverify once, within 300 seconds of the solve. Use it straight away, and solve again for the next submission rather than reusing one.
Pages with invisible widgets often submit by themselves once the callback fires. In a browser you drive, put the token in the hidden field and call the page's own submit, or send the request the form would send.
How to recognise it on a real site
No box anywhere, but api.js loads, the markup has a cf-turnstile element or a turnstile.render() call, and the hidden cf-turnstile-response field fills a few seconds after the page loads.
The page loads https://challenges.cloudflare.com/turnstile/v0/api.js, the only script Cloudflare supports: it must not be copied, proxied or cached.
The widget itself is an iframe from challenges.cloudflare.com, under /cdn-cgi/challenge-platform/. Its requests go to Cloudflare, never to the site.
Inside a form, the widget adds a hidden input named cf-turnstile-response and puts the token there. The site's server checks it with POST https://challenges.cloudflare.com/turnstile/v0/siteverify.
No cookie is set on the site's own domain: the widget's state lives in Cloudflare's iframe.
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="0x4AAAAAAFMVENeLHUzuPJpU"></div>
<!-- once solved: <input type="hidden" name="cf-turnstile-response" value="…"> -->Invisible widget questions
Which ZeroCaptcha task solves the invisible Cloudflare Turnstile widget?
TurnstileTaskProxyless, or TurnstileTask to solve through your own proxy, with the page's URL and its sitekey, plus action and cdata when the widget sets them. The same task solves every Cloudflare Turnstile widget, whatever its mode or appearance.
Does an invisible Cloudflare Turnstile widget have a sitekey?
Yes. Every widget has one, whatever its mode: it is in the cf-turnstile element's data-sitekey or the sitekey passed to turnstile.render().
Does solving a demo page cost anything?
A task pointed at a demo page is an ordinary task: it is charged at the price list's rate when it succeeds, and a failed or expired task costs nothing. Opening the page and checking its token are not charged.