# What is Cloudflare Turnstile?

> Cloudflare Turnstile is a CAPTCHA replacement that checks the browser with small JavaScript challenges and hands the site a token, usually without a puzzle.

Source: https://mosaicbrowser.com/glossary/cloudflare-turnstile

## Cloudflare Turnstile: the CAPTCHA that mostly never asks

Cloudflare Turnstile is Cloudflare's replacement for a CAPTCHA: a widget a site embeds that runs small, non-interactive JavaScript challenges in your browser and gives the site a token if it passes. Most visitors never see a puzzle; some get a checkbox.

![Cloudflare Turnstile, drawn as a mosaic of tiles](https://mosaicbrowser.com/covers/cloudflare-turnstile.webp)

Cloudflare Turnstile is the small box with a spinner and the Cloudflare mark that sits above a login or sign-up button on many sites. It runs in your browser for a second or two, and then the form works. A site can embed it on any page without putting the site behind Cloudflare's network, which is what makes it different from the full-page "checking your browser" screen.

## How Cloudflare Turnstile decides

The [Turnstile documentation](https://developers.cloudflare.com/turnstile/) says the widget first runs "a series of small non-interactive JavaScript challenges to gather signals about the visitor or browser environment". It names the kinds: proof-of-work, proof-of-space, probing for web APIs, and checks for browser quirks and human behaviour. From those it adjusts how hard the challenge is for that one visit, and most visits end there.

The site picks one of three [widget types](https://developers.cloudflare.com/turnstile/concepts/widget/):

| Mode | What the visitor sees |
| --- | --- |
| Managed (Cloudflare's recommendation) | A spinner, and a checkbox only when Cloudflare judges the visit risky |
| Non-interactive | A spinner; never asked to click |
| Invisible | Nothing at all |

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Leak tests and detectors](https://mosaicbrowser.com/features/detection-tests)

## The token, and the site's half of the check

A pass gives the page a token, which the form sends to the site's server with everything else. The server then has to ask Cloudflare whether the token is real, at the Siteverify endpoint. Cloudflare's [validation guide](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/) is firm on this: "The client-side widget alone does not protect your forms". Each token is valid for 300 seconds and can be validated once; a replayed one comes back as `timeout-or-duplicate`.

That second half is why a page that seems to "pass" tells you little by itself. What counts is whether the site's server accepted the token.

## What Turnstile reads about a browser

Cloudflare does not publish its signals, so we can only say what it is entitled to read and what we have measured. It runs JavaScript in your page, so it can read anything a [bot detection](https://mosaicbrowser.com/glossary/bot-detection) script can: the fingerprint, whether `navigator.webdriver` is set, whether the browser is headless, and side effects of automation over the DevTools protocol (the one we measured is enabling the Runtime domain; see [CDP detection](https://mosaicbrowser.com/glossary/cdp-detection)). It also sees the address the request comes from, with whatever history that address carries.

For a person on an ordinary browser, a loop almost always has a duller cause: a system clock a few minutes off, an ad blocker stopping the challenge frame, or a VPN. The error codes and the fix for each are in [Cloudflare Turnstile keeps looping](https://mosaicbrowser.com/guides/cloudflare-turnstile-keeps-looping).

## The demo that passes everyone

People often test against Turnstile's public demo at `demo.turnstile.workers.dev`. When we measured it, the page handed out `XXXX.DUMMY.TOKEN.XXXX`, created no widget frame and ran no challenge. That is the response Cloudflare's [testing documentation](https://developers.cloudflare.com/turnstile/troubleshooting/testing/) gives for its test sitekey `1x00000000000000000000AA`, which "Always passes". A script gets the same string as a person, so passing that demo proves nothing.

## How Mosaic treats Turnstile

Mosaic's catalogue of [detection tests](https://mosaicbrowser.com/features/detection-tests) keeps the Turnstile demo, in the Live gates group, as a reference row with no verdict, for the reason above. The row that measures Cloudflare for real is a site left on aggressive bot-fight settings, which renders its page only for a browser that gets through. You run either from a profile's row menu with **Check detectors**, inside that profile's own browser and through its own proxy.

![A proxy check result in Mosaic: latency, IP address, ISP, HTTPS through the proxy and reputation](https://mosaicbrowser.com/shots/proxy-check.png)
*The address half: a proxy is checked and scored before a profile opens*

Mosaic does not try to beat Turnstile. It removes reasons a well-run browser would fail it: fingerprint values changed inside the engine rather than by injected scripts, page tools that never enable Runtime, a timezone matched to the proxy's IP, and a proxy that has to answer and connect before the profile opens. What a site decides after that is the site's call.

## Sources

1. [Cloudflare Turnstile documentation](https://developers.cloudflare.com/turnstile/), read November 2, 2026
2. [Cloudflare Turnstile: Widget types](https://developers.cloudflare.com/turnstile/concepts/widget/), read November 2, 2026
3. [Cloudflare Turnstile: Server-side validation](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/), read November 2, 2026
4. [Cloudflare Turnstile: Testing](https://developers.cloudflare.com/turnstile/troubleshooting/testing/), read November 2, 2026

## Questions

### Is Cloudflare Turnstile a CAPTCHA?

It does the job of one, deciding whether a visitor is a person, but it does not show image puzzles. Cloudflare calls it a CAPTCHA alternative; in managed mode the most it asks is a checkbox.

### Does a site need to use Cloudflare's CDN for Turnstile?

No. Cloudflare's documentation says Turnstile can be embedded into any website without sending traffic through Cloudflare. That is what separates it from Cloudflare's challenge pages.

### How long is a Turnstile token valid?

300 seconds, and only once. Cloudflare's server-side validation guide says a token can be validated a single time, and a replayed or expired one is refused with timeout-or-duplicate.

### Why does Turnstile keep looping for me?

Usually a wrong system clock, a blocked challenge frame, an extension, the network, or a browser the check reads as automated. The console shows an error code that tells you which.

## Related

[Cloudflare Turnstile keeps looping: why, and what to check](https://mosaicbrowser.com/guides/cloudflare-turnstile-keeps-looping): Cloudflare Turnstile keeps looping when its check fails and retries. Its error codes name the causes: clock, blocked frame, extensions, network, bots.

[How does Cloudflare bot management work?](https://mosaicbrowser.com/guides/how-does-cloudflare-bot-management-work): A Cloudflare bot score of 1 is automated, 2 to 29 likely automated, 30 to 99 likely human, 0 not scored. Heuristics, a model and a JS check set it.

[Bot detection: how a site decides a visitor is software](https://mosaicbrowser.com/glossary/bot-detection): Bot detection is how a site scores whether a request comes from a person or from software, using the network, the browser, automation traces and behaviour.

[Detection tests: check a profile against 49 public detectors](https://mosaicbrowser.com/features/detection-tests): Test your anti-detect browser against detectors: Mosaic lists 49 public ones in five groups, from Pixelscan to a reCAPTCHA v3 score, and opens any in a profile.

[CDP detection: how a page notices DevTools is driving it](https://mosaicbrowser.com/glossary/cdp-detection): CDP detection is a page noticing that the Chrome DevTools Protocol is driving the browser, usually because Puppeteer or Playwright enabled Runtime.





[Prototype tampering detection: catching a faked browser API](https://mosaicbrowser.com/glossary/prototype-tampering-detection): Prototype tampering detection checks browser APIs for signs a script replaced them: wrong names, extra properties, non-native source, Proxy errors.

[A sleep is a guess with a number on it](https://mosaicbrowser.com/blog/wait-for-condition-not-sleep): Three detector rows slept for a time measured once; AmIUnique loaded in 31.7s once and under 10s the next. Polling for the value we read fixed all three.

## See cloudflare Turnstile on a real profile

Mosaic shows the values a site reads, per profile, and runs a leak test from inside the profile’s own page. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
