Cloudflare Turnstile integration

Turnstile is Cloudflare’s smart CAPTCHA alternative. Contact Form 7 provides an integration module with Turnstile, which effectively protects your contact forms from spam bots. Unlike Google reCAPTCHA, Turnstile is available for free. We recommend Turnstile unless you have reasons to use reCAPTCHA.

Get started

You need to obtain a site key and a secret key from Cloudflare. If you don’t have a Cloudflare account yet, create one first. Create a widget for your sites or select an existing one, then copy the site key and secret key for later use. You can ignore the client-side and server-side integration codes, as Contact Form 7 does for you.

After that, move to your WordPress site dashboard. Go to Contact > Integration, then select Setup integration in the Turnstile section. Paste the site key and secret key there.

Screenshot of the Integration screen.

That’s all. Now, all of your contact forms automatically have the Turnstile widget and are protected from bot attacks.

Controlling the widget rendering

By default, the Turnstile widget is placed at the top of a form. If you want to move it, insert a [turnstile] form-tag into the form template.

In addition, you can specify the following options in a [turnstile] form-tag:

Example: [turnstile size:compact language:en]

Just another contact form plugin for WordPress. Simple but flexible.