If the Contact Form module lacks spam protection, spam bots can bypass the required fields and send empty emails.
To prevent this, you can take the following measures:
Configure and use Google's reCaptcha system - recommended.
Use the basic captcha system on the Contact Form module
Configure and use Google's reCaptcha system
Login to Google reCaptcha account page.
Click on the + icon on the top right to register your website:
Set your label (it can be anything) and ensure that the Score Based (v3) option is selected.
Add your domain name. e.g:
my-domain.com
.Click on the Submit Button.
Configure the Contact Form module to use the Google reCaptcha spam system
Go back to your website and open the page where the Contact Form module is being used with Visual Builder.
Open the Contact Form module setting, go to Content Tab โ Spam Protection, and enable the Use A Spam Protection Service option.
Click on the Add button.
Set the Account Name field to be whatever you want.
Copy the Site Key and Secret Key from the Google reCaptcha account.
Click on Submit.
Ensure that the Service Provider is set to ReCaptcha, and under reCAPTCHA v3 Account, select the newly created account name.
In this example, I have named my account
reCaptcha
Use the Basic Captcha system on the Contact Form module
The Basic Captcha system is enabled by default when the Contact Form module is added to a layout. If it is not enabled, follow these steps: