Spam Filtering


reCAPTCHA v3 returns a score for each request without user friction. The score is based on interactions with your site and enables you to take an appropriate action for your site.
Score varies from 0.0 to 1.0 (1.0 is very likely a good interaction, 0.0 is very likely a bot). Based on the score, you can take variable action in the context of your site. By default, you can use a threshold of 0.5.

Step 1 — Add this script at the end of the head section of your page

Your reCAPTCHA must contain the same key as shown in the code snippet below. If you use a different sitekey, reCAPTCHA will not work.

<script src=""></script><script type="text/javascript">
  var initRecaptcha = function() {
    grecaptcha.ready(function() {
      grecaptcha.execute("6LchYK0UAAAAAMRflt6o0V_1imaH5KDnH5XVjWjB", {action: "homepage"}).then(function(token) {
        document.getElementById('recaptcha_token').value = token;

Step 2 — Add the following hidden inputs to your form

<form accept-charset="UTF-8" action="" method="POST">
  <input type="hidden" id="recaptcha_token" name="recaptcha_token"></input>
  <input type="hidden" name="action" value="validate_captcha"></input>

Step 3 — Make sure you've enabled anti-spam protection in your form

Make sure that Require recaptcha validation checkbox is enabled and appropriate Acceptable recaptcha score is set. Google's default recommendation is 0.5