Configuring Cloudflare Turnstile

Protect your WordPress and WooCommerce forms with Cloudflare Turnstile

Cloudflare Turnstile protects your forms from spam and bot abuse without showing CAPTCHAs or puzzles to real users. It runs a challenge invisibly in the background and only interrupts users when suspicious behavior is detected.

Cloudflare Turnstile for WooCommerce
customer accounts for woocommerce login page with cloudflare turnstile

Before You Start

You will need a free Cloudflare account to get your Site Key and Secret Key. Sign up or log in at cloudflare.com and go to Turnstile from the dashboard sidebar.

Accessing Cloudflare Turnstile Settings

Go to WooCommerce > Settings > Accounts & Privacy > Customer Accounts and click on Cloudflare Turnstile.

customer accounts for woocommerce customer accounts main settings page cloudflare turnstile card

Steps

Step 1: Get your Turnstile keys from Cloudflare

  1. Log in to your Cloudflare dashboard.
  2. Go to Turnstile from the sidebar.
  3. Click Add widget.
cloudflare turnstile add widget

4. Enter widget name and add hostnames.

cloudflare turnstile enter widget name and add hostnames
cloudflare turnstile save hostnames

5. Choose managed widget mode

cloudflare turnstile create managed widget

6. Copy the Site Key and Secret Key.

cloudflare turnstile site key and secret key

Step 2: Enable Cloudflare Turnstile

Under Cloudflare Turnstile, check Enable Cloudflare Turnstile.

customer accounts for woocommerce cloudflare turnstile enable

Step 3: Select the forms to protect

Under Forms, select which forms you want Turnstile to appear on.

customer accounts for woocommerce cloudflare turnstile forms multiselect

Supported forms

WooCommerce
  • Login
  • Registration
  • Reset Password
  • Classic Checkout
WordPress
  • Login
  • Registration
  • Reset Password
Customer Accounts for WooCommerce
  • Send Login Email (Passwordless Login)
  • Verify Login (Passwordless Login)
  • Send Verification Email (Email Verification)
  • Verify Email (Email Verification)

For stronger checkout protection, consider enabling the Modern Login experience on checkout — the checkout form is only shown after the user is logged in, reducing exposure to spam and bots.

Step 4: Enter your Site Key and Secret Key

  • Paste your Site Key into the Site key field.
  • Paste your Secret Key into the Secret key field.
customer accounts for woocommerce cloudflare turnstile site key and secret key fields

Step 5: Configure the widget appearance

  • Theme — choose Auto to match your site’s color scheme, or set it to Light or Dark manually. Default: Auto.
  • Size — choose Normal for standard forms, Flexible for full-width layouts, or Compact for tighter spaces. Default: Normal.

Step 6: Click Save changes

Click Save changes to apply your settings.

Combining with Rate Limiting

Cloudflare Turnstile and Rate Limiting work well together. Turnstile blocks bots at the form level before a request is processed, while Rate Limiting caps request frequency by IP for anything that slips through. Using both provides layered protection.

Plugin details

Buy now

Version

2.1.0

Updated

May 6, 2026

Languages

English

Developer

Cartsera
Requires: WooCommerce 7.8+, PHP 7.4+, and WordPress 6.2+.
Compatible up to: WooCommerce 10.7, PHP 8.3, and WordPress 6.9.
Compatible with WooCommerce HPOS.