Documentation v1.1.4

Preview

Overview

Google reCAPTCHA v3  is a free service that protects your site from spam and abuse. It uses advanced risk analysis techniques to tell humans and bots apart. For more info please check the plugin's documentation.

Usage

Google reCAPTCHA v3  requires to include below Google Recaptcha API Javascript file on your page:
<script src="https://www.google.com/recaptcha/api.js"></script>

Basic Example

Below example shows how to include Google reCAPTCHA v3  and perform a basic validation.
To learn more about Google reCaptcha please visit http://www.google.com/recaptcha
grecaptcha.ready(function () {
    if (grecaptcha.getResponse() === "") {
        alert("Please validate the Google reCaptcha.");
    } else {
        alert("Successful validation! Now you can submit this form to your server side processing.");
    }
});
<form action="?" method="POST">
  <div class="g-recaptcha" data-sitekey="your_site_key"></div>
  <br/>
  <input type="submit" value="Submit">
  <script src="https://www.google.com/recaptcha/api.js"></script>
</form>
Preview Get Help Buy Now