Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » Turnstile — Cloudflare’s CAPTCHA?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Nebu John – WPMU DEV Support


    Hi @rana-rene,

    I hope you are doing well today and thank you for reaching out to us.

    I am afraid, Forminator does not have the option to integrate Turnstile out of the box. However, it seems it will be possible to add the Turnstile CAPTCHA. Please try to add the following script to the website header.

    <script src="" async defer></script>

    The following plugin can help you insert scripts in the header of the website:

    Then insert an HTML field in your Forminator form and add the following code.

    <div class="cf-turnstile" data-sitekey="yourSitekey" data-callback="javascriptCallback"></div>

    You need to replace the “yourSitekey” with the key generated at the Cloudflare end as mentioned in the document.

    I hope that helps, please give it a try.

    Kind Regards,
    Nebu John



    Great suggestion!
    However I hope that Forminator includes support for Turnstile anytime soon

    • This reply was modified 1 year ago by alenguav.
    Plugin Support Adam – WPMU DEV Support


    Hi @alenguav

    We do have plans for adding support for Turnstile in future. I don’t have ETA and I’d rather not make promises on whether it will be added soon but I can confirm it is on a “to do” list already so it should be there eventually.

    Kind regards,

    Thread Starter Rana Rene


    Thanks for your reply …Easy to implement. Do you know of any way to test this to make sure it’s working? Thanks again.

    Thread Starter Rana Rene


    Something is defiantly not quite right…

    First, I’m using the Divi theme for this site, and I’m using the “Managed” widget in Turnstile settings, so I can see the Captcha loads. If I add the script into the header using Divi, everything seems to work. Until I log out of WP Admin, at which point all of the forms on the site stop loading? I haven’t tested this with Divi or any other forms yet. I’m only using Forminator forms at this point. If I remove the script from the header in Divi, my forms all start loading again. Regardless of being logged into or out of WP Admin.

    If I use the “Code Snippets” plugin to place the script in the header, everything seems to work. Again, only until I log out of WP Admin, at which point the forms continue to load, and work correctly, but the Turnstile Captcha stops loading?

    I’m also getting this error from the WordFence Security plugin, when using the Code Snippets plugin to place the script in the header, and I’m having to “allow” the script, in order to by pass WordFence.

    “A potentially unsafe operation has been detected in your request to this site.”


    Just to let you know, Forminator has just been added as an integration for the Simple Cloudflare Turnstile plugin. 👍

    Thread Starter Rana Rene


    Okay… My site is hosted at SightGround …and there is some sort of conflict between Cloudflare, Turnstile (or the script being used above) and SightGround’s cashing, or SiteGround Optimiser (a plugin for SiteGround), which controls SiteGrounds cashing.

    Activating the two plugins at the same time causes all of the forms on the site to fail … to not lode at all.

    The exact same thing happens using the Simple Cloudflare Turnstile plugin, or the script supplied by Nebu above. If I turn ether one, the other, or both plugins off, or delete the code, or disable WPCode Lite with the code, the forms all load. Activate, or replace the code and they fail to lode.

    I’ve replicated this over and over, killing the cashes, at Cloudflare, SiteGround, and locally in the browsers, one at a time, all at the same time, etc., with no difference, and I can reproduce the same result every time.

    I’ve also tested this is several browsers, Safari, (Chrome, Brave, Epic,) Firefox, and Opera …with the exact same result.

    Plugin Support Nebu John – WPMU DEV Support


    Hi @rana-rene,

    I tested the steps that I have shared on a test website from my end but was unable to replicate the issue. The form is loading fine without any issues. I believe @elliotvs have tested the plugin at their end it should be working fine as well.

    From what I can understand, it looks more to be an issue from the hosting end. Probably, the script from Cloudflare is blocked by the server firewall. Please bring this to the notice of hosting support and check if they can provide any insights on this.

    @elliotvs great plugin, thanks for adding Forminator as an integration.

    Kind Regards,
    Nebu John

    Thread Starter Rana Rene


    Hi Nebu John,

    First thanks for all your time with this…

    After a lot of experimentation with SiteGrounds cashing and optimisation features, here is what I’ve found… and because you obviously have a working relationship with Cloudflare, I’ll leave you with their comments below, as well… Hopefully all of this will help others who might run into the same issues, ether at SiteGround, or elsewhere.

    First I have isolated the (two) features at SiteGround causing the conflict… basically, my Forminator forms dropping out completely.

    “Defer Render-blocking JavaScript” – Absolutely… I can basically turn all of the forms off, and back on again, by toggling this feature off and on.


    “Combine JavaScript Files” – To a lesser extent, but it definably has some bearing on the problem as well.

    I’ve gone over all of this with support at SiteGround in hopes of using their “Exclusion feature” to Exclude Cloudflare/Turnstile/Forminator etc. from these two features in order to fine tune my own best practices ay SiteGround, and I’ll leave you with their comments below. If there is anything more, ether you guys, or Cloudflair can do to help out great… at any rate, I have “more or less” solved the problem for myself, just by leaving these features turned off. I’ll be measuring performance over the next couple of weeks to see if this is of any real significance.

    From SiteGround:

    Dimitar Z: Thank you for the transcript John. The issue is this, our plugin may encounter a “conflict” whenever there are other themes/plugins already optimizing/implementing the “Defer Render-blocking JavaScript”, and “Combine JavaScript Files” features. This heavily relies on your site’s setup and how the themes/plugins you use are coded. This being said, you can still have our plugin activated and just disable those two features within your WordPress Dashboard “SiteGround Optimizer plugin” Frontend section “JAVASCRIPT tab”. The two features are not mandatory and switching them off may not necessarily impact your website’s performance, at least much less so than having a plugin conflict related to the features. So, my thoughts are that a plugin/or the script (in this case this appears to be Turnstile) is coded to use/optimise these features already.

    Dimitar Z.: Regarding Exclusions from caching, if you’d like to try to check to see if this would be an option that would resolve your issue more completely, then CloudFlare and/or the plugin developer would have to let you know exactly what path they would need to “not be cached” and as much as I’d love to advise you on this, Turnstile is built by CF, so I could simply be misleading you. I would advise you to check with them if you want to pursue a more complete solution. Or just switch off the two frontend features of our plugin (“Defer Render-blocking JavaScript”, and “Combine JavaScript Files”), and let your site run like this for a week or so, monitoring to see if there are any changes in the site’s performance (although, off hand, I would expect this to be negligible).

    Again thank for your time with this… I will leave it your hands.


    Plugin Support Nebu John – WPMU DEV Support


    Hi @rana-rene,

    First I have isolated the (two) features at SiteGround causing the conflict… basically, my Forminator forms dropping out completely.

    Bit confused here, can you please let us know if the form is not loading when optimization options enbaled at SiteGround end? We recomend excluding pages with form’s from any caching, however, you can try enabling the “Load form using AJAX” under the Behaviour tab of the form and see if that helps resolve the issue.

    As the Turnstile script is served from Clodflare end, it could be possible they are optimized from the Cloudflare end and there is nothing much we can do about the same. Please see if SiteGround can exclude only Turnstile script from otpimization.

    Please feel free to get back to us if you need any clarification on this.

    Kind Regards,
    Nebu John

    Plugin Support Kasia – WPMU DEV Support


    Hello @rana-rene ,

    We haven’t heard from you for over a week now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Turnstile — Cloudflare’s CAPTCHA?’ is closed to new replies.