How to Set Up Cloudflare Turnstile on WordPress (Free Spam Fix)
Cloudflare Turnstile is a free, fast alternative to Google reCAPTCHA that stops WordPress form spam without annoying your visitors. Here's how to set it up in minutes.
Why You Need Cloudflare Turnstile on Your WordPress Site
If you've ever opened your inbox to find dozens of gibberish contact form submissions, you know how frustrating WordPress spam can be. Bots crawl the web looking for unprotected forms, and without some kind of verification in place, your login pages, comment sections, and contact forms are wide open.
Cloudflare Turnstile solves this problem without the headaches that come with traditional CAPTCHA solutions. Unlike Google reCAPTCHA, Turnstile won't slow down your site or force your visitors to click through endless grids of crosswalks and traffic lights. In most cases, verification happens instantly in the background — and the best part is it's completely free on any Cloudflare plan, including the free tier.
Getting Your Turnstile Keys from Cloudflare
Before touching your WordPress site, you'll need to generate your API keys in the Cloudflare dashboard. Log into your Cloudflare account and look for the "Turnstile" option in the left sidebar. Click "Add a Site" and give it a recognizable name so you can identify it later.
You'll need to select the domain you want to protect — this means your domain should already be connected to Cloudflare before you start this process. Under widget mode, you'll see three options: Managed, Non-Interactive, and Invisible.
Go with **Managed**. Here's why: the Invisible mode can silently block legitimate users without giving them any indication of what went wrong. Non-Interactive shows the Cloudflare widget but never gives users a chance to manually verify themselves. Managed strikes the right balance — it auto-verifies most visitors instantly, but if Cloudflare isn't sure someone is human, it presents a simple checkbox. Since both Managed and Non-Interactive display the same widget anyway, Managed gives you the best user experience. Once you've made your selection, click Create and you'll receive a Site Key and a Secret Key. Keep this page open — you'll need both keys in the next step.
Installing the Simple Cloudflare Turnstile Plugin
Now head over to your WordPress dashboard. Navigate to Plugins → Add New Plugin and search for "Cloudflare." The plugin you're looking for is called **Simple Cloudflare Turnstile**. Install and activate it.
The plugin's settings page will ask for your Site Key and Secret Key. Switch back to your Cloudflare tab, copy each key, and paste them into the corresponding fields in WordPress. Hit Save Changes, and you'll see a preview of the widget along with a test response at the top of the page. If it says "Success — Turnstile is working," you're good to go.
Configuring Turnstile Settings for Best Results
There are a handful of settings worth tweaking before you call it done. Under General Settings, you can switch the widget theme between Light, Dark, or Auto. Auto is a nice choice since it detects each visitor's system preference and matches accordingly. Language detection is handled automatically by Cloudflare, so you can leave that alone.
The **Appearance Mode** setting controls when the Cloudflare widget is actually visible on your forms. Setting this to "Always" is the safest bet. If a real human ever gets flagged, they'll at least be able to see the verification widget and understand why they can't proceed — rather than staring at a form that simply won't submit.
Finally, scroll down to the form integrations section. Turn on Turnstile for all the default WordPress forms: login, registration, password reset, and comments. The plugin also supports a long list of third-party form builders out of the box — WPForms, Elementor Forms, WooCommerce, Easy Digital Downloads, Fluent Forms, and more. If you're using any of these, toggle them on as well. Save your changes and you're done.
What Turnstile Looks Like in Action
Once everything is configured, the difference is immediate. On the WordPress login screen, Turnstile verifies visitors almost instantly — often without any interaction at all. The widget appears, briefly shows a "Verifying" animation, and then confirms the user is human. No clicking, no puzzles, no frustration.
On the front end of your site, the Turnstile widget integrates cleanly into contact forms without looking ugly or obtrusive. It fits naturally alongside your existing form fields and doesn't disrupt the page layout. For your visitors, it's a barely noticeable addition. For spam bots, it's a wall.
The bottom line: Cloudflare Turnstile gives you a free, fast, and effective way to eliminate spam from your WordPress site. It takes about five minutes to set up, works with most popular form plugins, and your visitors will barely notice it's there.
Watch the Full Video
Prefer watching to reading? Check out the full video on YouTube for a complete walkthrough with live demos and commentary.