Turnstile

term

securityweb devprivacy

Kept in this browser · My desk

Cloudflare's replacement for CAPTCHA, launched in beta on 28 September 2022 and free for unlimited use since 29 September 2023: a widget that runs non-interactive browser checks and returns a single-use token, usable on sites that do not route traffic through Cloudflare.

It is the product form of Cloudflare's managed challenge. The checkbox, when shown, is not what is judged; the background checks are. Cloudflare says it uses no cookies and that it no longer issues visual puzzles to anyone.

What it is. Turnstile is Cloudflare's replacement for the CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart): a widget that runs non-interactive browser checks and returns a single-use token that the site's server verifies. It was launched in beta on 28 September 2022, has been free for unlimited use since 29 September 2023, and works on sites that do not route their traffic through Cloudflare. It is the product form of Cloudflare's managed challenge: the checkbox, when it is shown, is not what is judged; the background checks are.

How it works, by Cloudflare's account. Turnstile picks from a rotating suite of non-interactive JavaScript challenges, including proof of work, proof of space, probes of web APIs and checks for browser quirks and human behaviour, plus machine-learning models trained on visitors who passed before. It looks at session data such as headers, the user agent and browser characteristics; Cloudflare states it never looks for or uses cookies. Private Access Tokens are built in, so supported Apple devices can skip the checks.

The widget's three modes. Cloudflare's documentation (updated 16 April 2026) describes Managed mode, the recommended one, in which Cloudflare decides from client-side signals whether an interaction is needed and, if so, asks the visitor only to select a box, "no images or text to decipher"; Non-Interactive mode, which shows a widget with a loading spinner and never asks for interaction; and Invisible mode, which shows nothing at all.

Verifying the token. The documentation on validation (updated 16 November 2026) is blunt: the client-side widget alone does not protect a form, because an attacker can submit any string to the form endpoint. The server must POST the widget's secret key and the token, optionally with the visitor's IP address and an idempotency key for safe retries, to https://challenges.cloudflare.com/turnstile/v0/siteverify (widgets for China use challenges.cloudflare-cn.com). A token is at most 2,048 characters long, valid for 300 seconds and meant for a single use; a replayed token is rejected with the error code timeout-or-duplicate. The JSON (JavaScript Object Notation) reply carries success, challenge_ts, hostname, error codes, the action and custom data (cdata) the page attached, and metadata such as an ephemeral identifier.

Plans, still moving. The plans page (updated 14 August 2026) limits free users to 20 widgets per account and lists for the Enterprise plan unlimited challenges, up to 200 hostnames per widget, any-hostname widgets and Offlabel, which removes Cloudflare's branding; it repeats that Turnstile can be used without other Cloudflare services. The documentation includes migration guides from reCAPTCHA and from hCaptcha and a pre-clearance configuration.

The record. Cloudflare said its managed challenge had cut its own CAPTCHA use by 91 per cent before Turnstile launched. On 29 September 2023 it announced that it had replaced every CAPTCHA it issued and would never issue another visual puzzle, made the managed mode free, and claimed WCAG 2.1 AA (Web Content Accessibility Guidelines, level AA) conformance without audio fallbacks. It also reported failures: old desktops whose dead motherboard batteries left the clock wrong, and privacy-focused users who change their user agent or block third-party scripts. Its Challenges documentation (updated 15 April 2026) says Cloudflare uses no CAPTCHA puzzles or visual tests at all.

Why it matters, and the limits. Turnstile moves the test from the person to the browser: what is judged is whether the client behaves like a real browser on real hardware. That is kinder to people and to accessibility, but it shifts the cost onto unusual clients, old machines, privacy tools and text browsers, and onto trust in one operator's models. A site still needs its own rate limits, because a token proves a passed challenge, not good intent. Neighbours: CAPTCHA, reCAPTCHA, hCaptcha, proof of work, Private Access Tokens, Privacy Pass, CDN (content delivery network), WAF (web application firewall).

Also known as: Cloudflare Turnstile, managed challenge, Cloudflare managed challenge

Sources

← Back to T Back to the glossary