| description |
|---|
Web3Forms supports cloudflare turnstile captcha in our forms. |
Codepen Demo: https://codepen.io/surjithctly/pen/ExdGwpE
{% hint style="info" %}
Heads Up! This is a PRO feature.
You must have an active subscription to use this feature.
{% endhint %}
- Log in to the Cloudflare dashboard and select your account.
- Go to Turnstile.
- In the widget overview, select Settings.
- Copy your sitekey and secret key.
To add the Turnstile script:
- Insert the Turnstile script snippet in your HTML’s
<head>element:
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
To render the Turnstile widget in your form:
- Insert the below code inside your
<form>tag. Make sure to changeYOUR_SITE_KEY_HEREwith the actual site key.
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY_HERE" data-theme="light"></div>
- Visit the Web3Forms Dashboard and select your form: https://app.webforms.com 
- Open Settings and choose
turnstileas your captcha provider - Enter the Secret Key in the Textbox below
- Save Changes
That's it. Your form will automatically be protected with Cloudflare Captcha.
To read more detailed guide, visit the official docs here:
https://developers.cloudflare.com/turnstile/get-started/
