Turnstile integration. Captcha alternative

Quick & dirty solution to use Turnstile with Wappler:

On your layout page(s):

    <!--<script src="https://www.google.com/recaptcha/api.js" defer></script>-->
    <script src="https://challenges.cloudflare.com/turnstile/v0/api.js?compat=recaptcha" async defer></script>

Use Visual Studio Code to find the following string on all files: (there’s an option to search for text in all files at once)

https://www.google.com/recaptcha/api/siteverify

You will find one match, replace with:

https://challenges.cloudflare.com/turnstile/v0/siteverify

And then replace all your site and secret keys with Turnstile ones

Won’t survive Wappler updates

Edit: Wappler insists on adding reCaptcha’s script when you add a new captcha

2 Likes