A CAPTCHA Replacement Solution
What it is
Cloudflare Turnstile is a bot-detection widget that Cloudflare describes as “A CAPTCHA Replacement Solution.” A website operator embeds the widget on a page, such as a login or signup form. When a visitor passes the check, the widget issues a token. The operator’s server then sends that token to Cloudflare’s siteverify API before processing the form. According to Cloudflare, Turnstile can be used on any website, whether or not it is proxied through Cloudflare. It is offered on a Free plan and an Enterprise plan. Cloudflare, Inc. is a public company (NYSE: NET) headquartered in San Francisco.
How it detects bots
Cloudflare says Turnstile runs small, non-interactive JavaScript challenges. These include proof-of-work computations, proof-of-space, probing for web APIs, and tests for browser quirks and human behavior. Cloudflare states that difficulty is tuned to each request, so most visitors never see a visual or interactive puzzle. In managed mode, the widget shows a checkbox only when further verification is needed.
Enterprise customers can enable Ephemeral IDs, which are short-lived device identifiers returned in the siteverify response. Cloudflare’s documentation says they expire within a few days, are not guaranteed to be unique per device, and cannot be used to identify individual users. Cloudflare also offers Precursor, an optional client-side, session-based add-on that gathers pointer motion, typing timing and focus changes. It was announced in July 2026 as part of Enterprise Bot Management, is rolling out, and is free until general availability.
Cloudflare’s public documentation does not describe IP reputation, TLS or HTTP/2 fingerprinting, or residential-proxy detection for Turnstile. The documented siteverify response does not include a bot score. Tokens are valid for 300 seconds and are intended for a single validation. Cloudflare says token-reuse detection is eventually consistent, so closely spaced replays may succeed.
Deployment
Sites embed the widget with a script tag and a container element, using either implicit rendering on page load or explicit rendering from JavaScript. Widgets are created in the Cloudflare dashboard, through the API, or through Wrangler. Turnstile Spin, a setup flow that can hand off to an AI coding agent to embed the widget and add server-side verification, became generally available on 2026-08-10. Server-side validation is a POST to the siteverify endpoint with the widget secret and the token.
Turnstile does not run natively in mobile apps. Cloudflare’s guidance is to load a page containing the widget in a WebView and to keep the User Agent consistent during a session. Cloudflare documents a Pages Functions plugin, a Firebase App Check extension, and Workers examples, and community libraries cover several server frameworks and CMS platforms.
Pricing
Cloudflare’s plans page lists two plans. The Free plan is priced at “Free” and allows up to 20 widgets per account, 10 hostnames per widget, unlimited challenges, and up to 7 days of analytics. The Enterprise plan is shown as “Contact Sales,” and no Enterprise price is published. Enterprise adds unlimited widgets, up to 200 hostnames per widget, any-hostname widgets, up to 30 days of analytics, Ephemeral IDs, and removal of Cloudflare branding. Both plans list community support. A September 2026 Cloudflare blog post states that “Turnstile is free for everyone.” No per-request cap is listed for the Free plan.
Where it fits
Turnstile suits sites that need a low-friction human check on forms such as login, signup, contact and checkout, and that do not want to route traffic through a CDN. Buyers who need edge enforcement, API or mobile-backend protection, or detection beyond a form-level challenge may want Cloudflare’s Bot Management and WAF products. Cloudflare describes these as usable alongside Turnstile, and they require the site’s DNS to point through Cloudflare. Enterprise Turnstile features are sold by quote.
Products
- Turnstile
- A widget-based CAPTCHA alternative with managed, non-interactive and invisible modes and a server-side siteverify API, offered on a Free plan and an Enterprise plan.
- Turnstile Spin
- A setup flow that creates a widget and returns a sitekey, secret and agent prompt so an AI coding agent can embed the widget and add siteverify to your backend; generally available since 2026-08-10.
- Ephemeral IDs
- Short-lived device identifiers returned in siteverify responses (metadata.ephemeral_id), available with Enterprise Bot Management plus the Enterprise Turnstile add-on or standalone Enterprise Turnstile, and enabled by the account team.
- Precursor
- A client-side, session-based behavioral detection add-on to Turnstile, part of Enterprise Bot Management, announced 2026-07-13 and free until general availability while it rolls out.
- Turnstile Analytics
- Dashboard metrics showing challenge outcomes ('Likely Human' / 'Likely Bot'), solve rates, token validation results and TopN breakdowns.
Detection layers
- Network Not found
- Cloudflare's docs describe no IP reputation, TLS fingerprinting or proxy detection; Turnstile works without routing traffic through Cloudflare.
- Device Documented
- Challenges probe web APIs and browser quirks; Enterprise Ephemeral IDs are described as a device fingerprint ID.
- Behavior Partial
- Docs mention human-behavior tests without detail; the optional Precursor add-on (rolling out) tracks pointer and typing activity.
- Challenge Documented
- Proof-of-work and proof-of-space challenges, delivered in managed, non-interactive or invisible widget modes.
Feature checklist
From Cloudflare Turnstile’s public material. “Not documented” means we couldn’t confirm it, not that it’s missing.
Detection
- ◐ Persistent visitor / device ID Enterprise-only Ephemeral IDs expire within a few days, are not unique for every device, and cannot identify individual users.
- ✕ Bot or risk score per request The documented siteverify response contains no score; Analytics show only aggregate 'Likely Human'/'Likely Bot' outcomes.
- ? TLS (JA3/JA4) or HTTP/2 fingerprinting Not described in Cloudflare's public Turnstile documentation.
- ? IP reputation, VPN, proxy and Tor detection Not described in Cloudflare's documentation beyond an optional remoteip parameter in siteverify.
- ? Residential and mobile proxy detection Not described in Cloudflare's public Turnstile documentation.
- ◐ Headless and automation framework detection Browser-quirk and web API probing is described; no explicit headless-browser or Playwright detection claim is made.
- ◐ Behavioral analysis or biometrics The Precursor add-on provides behavioral detection as part of Enterprise Bot Management; it is rolling out and free until GA.
Challenges
- ✓ Invisible or non-interactive challenge Invisible mode runs challenges in the background with no visible widget or loading indicator.
- ◐ Interactive CAPTCHA or puzzle Managed mode shows a checkbox only when more verification is needed; Cloudflare says it uses no image or text puzzles.
- ✓ Proof-of-work challenge Cloudflare lists proof-of-work computational puzzles among its challenges.
Use cases
- ◐ Account takeover and credential stuffing Cloudflare's guide adds Turnstile to login forms with rate limiting; it is a form-level challenge, not a credential-stuffing detector.
- ◐ Fake accounts and signup abuse Turnstile can challenge signup forms, and Enterprise Ephemeral IDs have a fraud-detection tutorial.
- ? Scraping and content protection Not described in Cloudflare's public Turnstile documentation.
- ◐ Card testing and payment fraud Cloudflare lists payment form security as a checkout use case; Turnstile is not a payment-fraud scoring product.
- ◐ AI agent identification or verification Cloudflare says Precursor helps distinguish human from automated or agentic traffic; no Web Bot Auth support is documented.
- ? AI crawler controls Not described in Cloudflare's public Turnstile documentation.
- ✕ Virtual waiting room Waiting Room is a separate Cloudflare product whose plans table lists Turnstile widget-mode settings.
- ✕ Client-side script security Not part of Turnstile; Cloudflare's client-side security offering is a separate product.
Deployment and service
- ✕ Enforcement at the CDN or edge Enforcement happens when your server calls siteverify; Turnstile works whether or not a site is proxied through Cloudflare.
- ✕ API and mobile backend protection Turnstile runs in a browser or WebView; the docs describe no protection for non-browser API clients.
- ✕ Native mobile SDKs Turnstile does not run natively in mobile apps; native apps load the widget in a WebView.
- ✕ Self-hosted or on-premises option The widget script is loaded from Cloudflare, and no self-hosted option is documented.
- ◐ Choice of data region Customer Metadata Boundary is supported and Regional Services is not; Siteverify has no regionalization guarantees yet.
- ? Managed service or vendor SOC No vendor-run SOC or managed tuning service is described; the plans page lists community support for both plans.
- ✓ Permanent free plan A Free plan is listed, and Cloudflare's blog says 'Turnstile is free for everyone'.
Pricing in detail
- Published pricing
- Yes
- What you pay for
- Free plan: no per-request fee shown and challenges listed as unlimited. Enterprise: contract, price not published.
- Free plan
- The Free plan allows up to 20 widgets per account, 10 hostnames per widget, unlimited challenges, all widget types, pre-clearance, up to 7 days of analytics lookback, and community support.
- Enterprise
- Enterprise Turnstile is quoted by Cloudflare sales and no price is published. Ephemeral IDs require Enterprise Bot Management with the Enterprise Turnstile add-on, or standalone Enterprise Turnstile. Enterprise customers can request a higher widget limit through their account team.
| Plan | Price | Includes |
|---|---|---|
| Free | Free | Up to 20 widgets per account; 10 hostnames per widget; unlimited challenges; all widget types; pre-clearance; up to 7 days of analytics lookback; community support. |
| Enterprise | Contact Sales | Unlimited widgets; up to 200 hostnames per widget; any-hostname widget; unlimited challenges; up to 30 days of analytics lookback; Ephemeral IDs; removal of Cloudflare branding (offlabel). The plans page lists community support for Enterprise Turnstile as well. |
Source: Cloudflare Turnstile pricing , checked November 13, 2026.
Integrations
- Server
- Cloudflare Workers (HTMLRewriter and fetch siteverify example)Cloudflare Pages Functions plugin for validating tokensCommunity server-side libraries: fastify-cloudflare-turnstile, nest-cloudflare-turnstileCommunity full-stack libraries: Nuxt, Laravel, Phoenix
- Client
- Plain HTML script api.js with cf-turnstile div; implicit and explicit renderingCommunity TypeScript definitions: turnstile-types, @types/cloudflare-turnstile
- Mobile
- No native SDK; native apps load the widget in a WebView
- Platforms
- Firebase App Check provider extensionWordPress, Craft CMS, Statamic, SilverStripe, Google Forms listed as community integrationsWidget management via the Cloudflare API and Wrangler
How to spot Cloudflare Turnstile on a website
Cloudflare Turnstile leaves these markers in the pages it protects. Check any site with the bot protection checker, or see every bot protection cookie.
- Script or host
challenges.cloudflare.com/turnstile/Cloudflare Turnstile widget script (https://challenges.cloudflare.com/turnstile/v0/api.js, optionally ?render=explicit). Do NOT match bare 'challenges.cloudflare.com': Cloudflare challenge pages list that host in a CSP meta tag, and www.cloudflare.com lists it in its CSP header. source - Page or challenge marker
class=…bcf-turnstilebTurnstile implicit-render container element (<div class="cf-turnstile" data-sitekey=...>). Risk: docs or blog pages that show code samples. Requiring a real attribute with literal quotes avoids most HTML-escaped samples ("); still best paired with the api.js script. source
Security and compliance
Cloudflare is certified as a Level 1 PCI DSS Service ProviderSOC 2 and ISO 27001
Cloudflare's docs say Turnstile 'does not access, store, or transmit user communications, form entries, or other page inputs' and processes only the data needed for its security function. A Turnstile Privacy Addendum is linked from the docs, and invisible mode requires you to reference it in your own privacy policy.
Strengths
- A Free plan is listed on Cloudflare's plans page, and a September 2026 Cloudflare blog post says 'Turnstile is free for everyone'. source
- Cloudflare's overview says Turnstile can be embedded on any website without sending traffic through Cloudflare, and that most visitors never see a visual or interactive puzzle. source
- Three documented widget modes (managed, non-interactive, invisible) let sites choose how visible the check is. source
- Server-side validation is a single documented POST to siteverify, with a documented token lifetime of 300 seconds and single-use intent. source
- Cloudflare's integration tutorial says Turnstile can be used alone or alongside WAF and Bot Management when the site's DNS points through Cloudflare. source
- Cloudflare states that Turnstile does not access, store, or transmit user communications, form entries, or other page inputs. source
Limitations
- The Free plan is capped at 20 widgets per account, 10 hostnames per widget, and 7 days of analytics lookback. source
- Enterprise pricing is not published ('Contact Sales'). Ephemeral IDs, any-hostname widgets and branding removal are Enterprise-only, and the plans page lists community support only for both plans. source
- Results are enforced only if your server calls siteverify. Cloudflare's docs say token-reuse detection is eventually consistent (target: reject at least 99% of repeat validations received five or more seconds after the first), so closely spaced replays may still succeed. source
- Turnstile does not run natively in mobile apps; native apps must load it in a WebView, and changing the User Agent during a session causes challenges to fail. source
- Enterprise Ephemeral IDs cannot be self-activated and are not guaranteed unique per device. Cloudflare notes that privacy-focused browsers such as Safari limit the available signals, so several users may share one ID. source
- Cloudflare's compatibility table shows Regional Services is not supported for Turnstile. Customer Metadata Boundary is supported, but there are no regionalization guarantees yet for the Siteverify API. source
Best for
Websites and apps that need a free, low-friction human check on forms such as login, signup and contact, without routing traffic through Cloudflare's CDN.
Recent news
- 2026-09 Turnstile Spin: agent-mediated setup; Cloudflare states 'Turnstile is free for everyone'
- 2026-08 Turnstile Spin generally available with dashboard, Wrangler and AI-agent setup paths
- 2026-07 Introducing Precursor: client-side, session-based detection of agentic behavior (add-on to Turnstile, part of Enterprise Bot Management)
- 2026-02 Redesign of Turnstile widget and Challenge Pages; Cloudflare says they are served 7.67 billion times per day
- 2025-03 Upgraded Turnstile Analytics with TopN statistics, challenge outcomes and token validation results
Cloudflare Turnstile: common questions
How much does Cloudflare Turnstile cost?
Cloudflare lists a Free plan and an Enterprise plan shown as 'Contact Sales'. The Free plan allows up to 20 widgets per account and 10 hostnames per widget, with unlimited challenges. No Enterprise price is published.
How does Turnstile decide whether a visitor is a bot?
Cloudflare says it runs small non-interactive JavaScript challenges, including proof-of-work, proof-of-space and probing for web APIs, and tunes difficulty to each request. Managed mode shows a checkbox only when further verification is needed. Enterprise customers can add Ephemeral IDs and the Precursor behavioral add-on, which is still rolling out.
Does Turnstile require my site to run through Cloudflare?
No. Cloudflare's docs state you can use Turnstile on any website regardless of whether it is proxied through Cloudflare. Using it with WAF and Bot Management requires the site's DNS to point through Cloudflare.
Can Turnstile protect native mobile apps or APIs?
Not natively. Turnstile does not run natively in mobile apps, though apps can load the widget in a WebView. Cloudflare's documentation does not describe protection for API clients that run no browser.
Does Turnstile return a bot score?
Not in the documented siteverify response, which returns fields such as success, challenge_ts, hostname, error-codes, action, cdata and, for Enterprise, metadata.ephemeral_id.
Sources
- Cloudflare Turnstile product page
- Turnstile docs overview
- Turnstile plans
- Turnstile server-side validation (siteverify)
- Turnstile widget modes
- Turnstile get started
- Turnstile mobile implementation
- Turnstile Ephemeral IDs
- Turnstile Ephemeral IDs fraud tutorial
- Turnstile with WAF and Bot Management tutorial
- Turnstile Spin docs
- Turnstile Spin GA changelog (2026-08-10)
- Turnstile Spin blog (2026-09-25)
- Introducing Precursor (2026-07-13)
- Redesigning Turnstile and Challenge Pages (2026-02-27)
- Upgraded Turnstile Analytics (2025-03-18)
- Data localization compatibility table
- PCI DSS compliance (Cloudflare SSL docs)
- Cloudflare D1 data security (SOC 2 / ISO 27001 statement)
- Stop account takeover attacks (Turnstile on login forms)
- Cloudflare e-commerce protect (payment form use case)
- Turnstile community resources
- Turnstile Firebase App Check extension
- Turnstile Pages Functions plugin
- Workers Turnstile HTMLRewriter example
- Waiting Room plans (Turnstile settings)
- Cloudflare about (HQ, NYSE listing)
- Cloudflare (Wikipedia: founding date)
Checked November 13, 2026. Spot something out of date? Send a correction.