Here’s the translation of your text into American English:
In an increasingly digital world, online security is a priority for any website. CAPTCHA has been an essential tool for distinguishing between human users and malicious bots for years. However, traditional methods, such as Google’s reCAPTCHA, can often be intrusive and negatively affect the user experience.
Cloudflare, known for its wide range of security and web efficiency services, has launched Turnstile, a smart and less intrusive alternative to traditional CAPTCHAs. This article explores in detail what Cloudflare Turnstile is, how it works, its advantages, and how to migrate from reCAPTCHA or hCaptcha.
What is Cloudflare Turnstile?
Cloudflare Turnstile is a security solution that allows website owners to protect their platforms from malicious bots without resorting to traditional visual CAPTCHAs. Unlike reCAPTCHA, Turnstile uses a combination of non-interactive challenges, artificial intelligence, and machine learning to determine whether a visitor is human or a bot.

What’s noteworthy is that Turnstile does not require traffic to pass through Cloudflare’s network, making it accessible for any website, regardless of whether they use other Cloudflare services.
How does Cloudflare Turnstile work?
Turnstile is based on the Challenge Platform, the same technology that powers Cloudflare’s challenges. Here’s how it works:
- Non-interactive challenges:
Turnstile runs a series of small non-interactive tests in JavaScript to collect signals regarding the visitor’s environment. These tests include:- Proof-of-work.
- Proof-of-space.
- Web API probing.
- Detection of browser behaviors and quirks.
These challenges are designed to be quick and do not require user interaction.
- Machine learning:
Turnstile uses machine learning models to identify patterns from visitors who have previously passed the challenges. This allows for adjusting the difficulty of challenges based on user behavior, avoiding unnecessary visual CAPTCHAs. - Widget types:
Turnstile offers three types of interactivity modes:- Non-interactive: No user interaction.
- Non-intrusive interactive: A simple challenge (like checking a box) if the visitor is suspected to be a bot.
- Invisible: No visual elements, completely in the background.
Advantages of Cloudflare Turnstile
- Less intrusive:
Turnstile avoids visual CAPTCHAs in most cases, enhancing user experience. - Accessible:
Meets WCAG 2.1 AA standards, making it accessible for users with disabilities. - Easy to integrate:
There’s no need to use Cloudflare’s CDN, making implementation straightforward for any website. - Free for basic use:
Turnstile offers a free plan that allows up to 10 widgets per site, ideal for personal projects or small sites. - Scalable for enterprises:
The Enterprise version offers advanced functionalities, such as removing Cloudflare branding, support for single-page applications (SPA), and unlimited hostname validation.

Migrating from reCAPTCHA or hCaptcha
If you are already using reCAPTCHA or hCaptcha, Cloudflare provides detailed guides to migrate to Turnstile seamlessly. Here’s a summary of the key steps:
Migrating from reCAPTCHA
- Client-side integration:
- Insert the following script in the
of your HTML:
- Replace the calls
grecaptcha.render()
with your Turnstile sitekey.
- Insert the following script in the
- Server-side integration:
- Replace the reCAPTCHA verification URL (
https://www.google.com/recaptcha/api/siteverify
) with the Turnstile URL:https://challenges.cloudflare.com/turnstile/v0/siteverify
. - Ensure you are using POST requests with FormData or JSON.
- Replace the reCAPTCHA verification URL (
Migrating from hCaptcha
- Client-side integration:
- Insert the following script in the
of your HTML:
- Replace the calls
hcaptcha.render()
with those for Turnstile.
- Insert the following script in the
- Server-side integration:
- Replace the hCaptcha verification URL (
https://hcaptcha.com/siteverify
) with the Turnstile URL. - Change the input name from
h-captcha-response
tocf-turnstile-response
.
- Replace the hCaptcha verification URL (
Plan Comparison
Feature | Free Plan | Enterprise Plan |
---|---|---|
Number of Widgets | 10 | Unlimited |
Interactivity Modes | Managed, Invisible, Interactive | Managed, Invisible, Interactive |
Branding Removal | No | Yes |
Hostname Validation | 10 per widget | Up to 200 per widget |
SPA Support | Yes | Yes |
Ephemeral IDs | No | Yes |
Customer Opinions
One of the developers from Colorvivo commented:
“Based on the information provided by Cloudflare, we adopted a payment gateway that offered better security and integrated Turnstile, Cloudflare’s smart CAPTCHA alternative.”
Conclusion
Cloudflare Turnstile emerges as an innovative and efficient alternative to traditional CAPTCHAs. Its non-intrusive approach, combined with the power of artificial intelligence, makes it an excellent option for enhancing the security of any website without sacrificing the user experience. Whether for personal projects or business applications, Turnstile offers a scalable and accessible solution.
If you are considering migrating from reCAPTCHA or hCaptcha, Cloudflare provides tools and detailed documentation to facilitate the process. Turnstile not only protects your site but also improves your users’ experience.