Cloudflare Turnstile for WooCommerce: stop spam orders
Table of Contents
- Why you're seeing WooCommerce spam orders
- Why Cloudflare Turnstile beats old CAPTCHAs on a checkout
- Set up Cloudflare Turnstile in CheckoutWC
- What happens when verification fails
- Don't run it next to the Simple Cloudflare Turnstile plugin
- Check your express payment buttons
- Beyond Turnstile: add more layers
- In WooCommerce
- At the edge
- At your payment gateway
- If your store is under attack: a five-step checklist
- Related resources
Cloudflare Turnstile for WooCommerce is a free bot check you add to your checkout, login, and registration forms to stop spam orders and card-testing attacks. To set it up in CheckoutWC, create a free Turnstile widget in Cloudflare, paste the Site Key and Secret Key into CheckoutWC » Integrations, and turn it on. Many real customers never see a challenge.
Why you’re seeing WooCommerce spam orders
A sudden run of failed orders, fake registrations, or warning emails from your payment processor usually means automated bots are working through your store. Three things are going on.
Card testing (also called carding) is the most common cause. Criminals with lists of stolen card numbers use bots to try small purchases and see which cards still work. They don’t care about your products. Each failed order is a bot testing a card that may be stolen.
Fake accounts and form spam often come with the same attacks, as bots probe every input they can find to locate weak endpoints and collect email addresses.
Resource drain is the cost many store owners miss. Every fake checkout attempt uses server resources, triggers notification emails, writes database rows, and can slow the site for real customers. Payment processors also watch your failure and chargeback rates, so a large attack can mean higher fees, an account review, or worse.
Why Cloudflare Turnstile beats old CAPTCHAs on a checkout
Picture-puzzle CAPTCHAs cost you customers at the one page where you can least afford it. Turnstile works differently: it checks the visitor’s browser in the background and, for most people, shows nothing to solve. It’s free from Cloudflare, and your site doesn’t need to use Cloudflare’s CDN or DNS to use it.
When you create a widget in Cloudflare you pick a mode:
- Managed lets Cloudflare decide whether to show a lightweight challenge. It’s the sensible default, and the one to use during an attack.
- Non-interactive shows a brief loading indicator and never asks the visitor to click anything.
CheckoutWC’s size setting offers Normal or Compact. If you change the widget mode in Cloudflare, test your checkout afterward to make sure the widget still appears and orders go through.
Turnstile does send some data to Cloudflare. When someone places an order, logs in, or registers, your store sends the Turnstile result to Cloudflare to verify it, along with the visitor’s IP address. Mention Cloudflare Turnstile in your privacy policy. If you switch the widget to Invisible mode in Cloudflare, Cloudflare requires you to reference its Turnstile Privacy Addendum there too.
Set up Cloudflare Turnstile in CheckoutWC
CheckoutWC has Turnstile built in, so there’s no extra plugin to install and update. The short version:
- Get your keys. Sign in to Cloudflare (a free account works), open Turnstile, and add a widget for your store’s domain. Cloudflare gives you a Site Key and a Secret Key.
- Add them to CheckoutWC. Go to CheckoutWC » Integrations, turn on Enable Cloudflare Turnstile, paste both keys and choose where it appears. If either key is missing, the widget doesn’t show and no error appears, so check both.
- Choose where it protects. Enable on Checkout is on by default. Enable on Order Pay, Enable on Login (My Account, the WordPress login page, and CheckoutWC’s login window) and Enable on Registration (My Account) are off by default.
- Pick position, theme, and size. Position is before the place order button (default), before the payment methods, or after them. Theme is light, dark, or auto; size is normal or compact. Guest Users Only hides it from logged-in customers.
- Test it. Log out, add a product to your cart, and open the checkout. The widget appears and the order goes through as normal.
The full walkthrough, with every setting and the error messages shoppers can see, is in the documentation: How to set up Cloudflare Turnstile on your WooCommerce checkout.


What happens when verification fails
If Cloudflare can’t confirm a visitor, the order, login, or registration is blocked with a message such as “Please complete the verification challenge.” or “Verification failed. Please try again.” If your server can’t reach Cloudflare at all, the action is blocked with “Verification service unavailable. Please try again.” instead of letting unverified requests through. If that appears for real customers, ask your host to allow outgoing connections to challenges.cloudflare.com.
Don’t run it next to the Simple Cloudflare Turnstile plugin
CheckoutWC’s Turnstile can’t run while the Simple Cloudflare Turnstile plugin is active, and its settings stay locked until you deactivate that plugin. Choose one. If you aren’t using CheckoutWC, the Simple Cloudflare Turnstile plugin is a free way to add Turnstile to the WooCommerce checkout, login, and registration forms.
Check your express payment buttons
Turnstile checks orders placed with the place order button. Apple Pay, Google Pay, and similar buttons may complete the order through their own route, so test them after you turn Turnstile on rather than assuming they’re covered.
Beyond Turnstile: add more layers
Turnstile blocks a lot of automated traffic, but a determined attacker can get around any single control, so layer your defenses.
In WooCommerce
- Email verification for new accounts (with a plugin).
- Minimum order values (with a plugin), which discourage micro-transaction testing.
- Shipping restrictions to the countries you actually serve.
- Turnstile on login and registration as well as checkout.
At the edge
- Cloudflare WAF and rate limiting on your checkout endpoints, if your site is behind Cloudflare.
- Bot Fight Mode, a free baseline that catches obvious automated traffic.
- Geographic restrictions for regions you don’t sell to.
At your payment gateway
- 3D Secure for higher-risk payments.
- Stripe Radar rules (or your gateway’s equivalent) for velocity and risk-score blocks.
Our guide to preventing WooCommerce carding attacks goes deeper on these.
If your store is under attack: a five-step checklist
- Turn on Cloudflare bot protections and add a rate limit on your checkout endpoints.
- Turn on Turnstile in Managed mode, at least while the attack lasts.
- Require 3D Secure for elevated-risk payments in your gateway settings.
- Pause the failed and cancelled order admin emails so your inbox stops flooding.
- Bulk-delete the failed orders. For thousands of orders WP-CLI is the fastest route and may need a developer; otherwise delete them from the orders screen after taking a backup.
CheckoutWC includes Turnstile in its one plan, with every other feature, from $249 a year for one site. See the plans, or contact us if you want a hand with the Turnstile setup during an attack.
Related resources
- Set up Cloudflare Turnstile on the checkout (documentation)
- How to prevent WooCommerce carding attacks
- Cloudflare Turnstile FAQ (documentation)
The simplicity of Shopify with the power of WooCommerce. Replace your WooCommerce checkout page with CheckoutWC to boost sales and reduce cart abandonment.