Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christopher King 2 posts 72 karma points
    Sep 18, 2019 @ 15:36
    Christopher King
    0

    Setting up reCAPTCHA

    Hi there,

    I'd like to set up reCAPTCHA (v3) on my Umbraco 8 site (mainly for the contact form but Google recommends running it on every page). I'm a complete noob when it comes to this.

    Could you please recommend any articles or tutorials on doing this, specifically with version 3?

    I get that I have to insert JavaScript into my templates (Google's sample below) but I don't understand how to interact with their API from Umbraco.

    <script src="https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key"></script>
      <script>
      grecaptcha.ready(function() {
          grecaptcha.execute('reCAPTCHA_site_key', {action: 'homepage'}).then(function(token) {
             ...
          });
      });
      </script>
    

    Any help is much appreciated :)

    Thank you!

  • Shaishav Karnani from digitallymedia.com 354 posts 1638 karma points
    Sep 18, 2019 @ 16:02
    Shaishav Karnani from digitallymedia.com
    0

    Hi,

    Do you want to add this Umbraco Forms?

    Cheers, Shaishav

  • Christopher King 2 posts 72 karma points
    Sep 18, 2019 @ 16:29
    Christopher King
    0

    Yes

Please Sign in or register to post replies

Write your reply to:

Draft