Skip to main content

Cloudflare Turnstile

Turnstile is the captcha of Cloudflare. Most visitors never see a puzzle: Cloudflare decides from the browser, and asks only those it doubts. It is free.

How spam protection works, and where each check runs, is on Spam protection.

1. Make a widget​

  1. Log in to the Cloudflare dashboard and open Turnstile.
  2. Press Add widget and give it a name, such as your site.
  3. Add the hostname of your site, such as example.com.
  4. Choose Managed as the widget mode: Cloudflare asks a visitor to tick a box only when it doubts them.
  5. Press Create, and copy the Site Key and the Secret Key.

2. Enter the keys​

  1. In WordPress, go to Poly Community → Settings → Services → Spam protection.
  2. Under Captcha service, choose Cloudflare Turnstile.
  3. Paste the Site key and the Secret key.
  4. Under Where the check runs, choose The site captcha: Cloudflare Turnstile for the forms you want it on.
  5. Press Save changes. The secret is checked with Cloudflare before it is kept.
Spam protection with Cloudflare Turnstile chosen: the site key and the secret key
Settings → Services → Spam protection, Cloudflare Turnstile

Trying it first​

Cloudflare publishes test keys that pass every time, so you can try your forms before you make a widget: the site key 1x00000000000000000000AA with the secret 1x0000000000000000000000000000000AA. A real visitor passes them too, so never leave them on a live site. The keys 2x00000000000000000000AB and 2x0000000000000000000000000000000AA fail every time, to see what a refused visitor reads.

Cloudflare gets the address and the browser of each visitor who meets the widget. Name it in your privacy policy, or hold it for consent as Spam protection says.