Google’s reCAPTCHA v3 spam protection service works well on contact forms without getting in the way of site users with arithmetic questions for the most part. Divi’s contact form module offers this functionality out of the box. Here’s how to set it up.
1: Go to https://www.google.com/recaptcha/about/ and select the Admin Console. You will need to be signed in to your Google account.
2: Select ‘+’ in order to ‘create’ a new reCAPTCHA as shown:
3: Register your site for reCAPTCHA (v3) by inputting the details highlighted in yellow as shown, and press the submit button:
Your site is now registered. You will be provided with a site key and a secret key which we will use to activate reCAPTCHA in the Divi contact module.
4: Go to the page containing the contact module on your website. As demonstrated in the visual below, open the settings in the contact module, choose the spam protection service option and select ‘Add’. Then copy across the site key and the secret key as shown. By selecting ‘submit’ the reCAPTCHA service is activated.
In this example, we have set the minimum score at the default of 0.5. If spam continues to get through, consider setting this to 0.6 or 0.7.
5: Finally, on the reCAPTCHA site, you can view the Analytics at any point in order to see the stats on how well the spam protection service is running.