Spam Filtering
Cloudflare Turnstile
Cloudflare Turnstile is a CAPTCHA alternative that can be used to protect your forms from spam. It's easy to implement and provides a user-friendly experience while effectively blocking bots. Here's how to add Cloudflare Turnstile to your form:
<form accept-charset="UTF-8" action="https://app.form2chat.io/f/q1w2e3r4t5y6" method="POST">
...
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY"></div>
...
</form>
How to obtain your Cloudflare Turnstile keys:
- 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.
Once you have your site key, replace "YOUR_SITE_KEY" in the code above with the actual key you obtained from Cloudflare.
And add the secret key to your form on a form settings page in the admin panel.
And add the secret key to your form on a form settings page in the admin panel.