Integrating CloudFlare Turnstile
Getting Started
This article will guide you in integrating Cloudflare Turnstile into your Dorik website. Sometimes, you may face issues with many bot traffic visiting your website, and Cloudflare Turnstile can help you filter them.
Adding Cloudflare Turnstile
Follow these steps to integrate cloudflare turnstile into your website.
Create a CloudFlare Turnstile account or Sign in to your existing account.

Click on the Add Widget button, to add your website.

Add a name for your widget and add your domain hostname.

Set the widget mode to Invisible

Now click the Create button.

Once you have created the widget, you should get a Site key and Secret key.
Note: Don't Share the Secret key with anyone.

Now copy the following code:
<script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script>
Go to your Dorik website Site settings and Header Code and paste the script.

After that add a custom code element anywhere on your website.

Now copy the following code:
<div
class="cf-turnstile"
data-sitekey="YOUR_SITE_KEY"
data-callback="javascriptCallback"
></div>
Then paste it inside the custom code => HTML block and replace the data-sitekey"YOUR_SITE_KEY" value with your own Site key.

Now Save and Republish your website.

Congratulations 🎉 You have successfully integrated Cloudflare Turnstile into your Dorik website 😊
Related Articles:
Adding custom code
Updated on: 26/05/2025
Thank you!