Are you getting lot of spam emails via the contact form which you have on you website?
Most websites have a contact page and a contact form on their websites. That’s a great way to get in touch with your clients/visitors. But the problem is within few days, you will start to receive lot of spam emails.
So how we can stop it?
Here I am using the plugin called ‘Contact Form7‘ to add the form to the website. 100% free and a great plugin. You can customise the form the way you want it. And they have a great documentation and you can follow that to learn more about customisation.
Lets see how we can stop Spams with Contact Form7 plugin.
1. Adding Quiz
One way to stop spam is adding a question to the form which the sender has to provide the answer to send the mail. Bots can’t do it. So it must be a real person to do that. Lets see how to add that.
Step #1. First of all you have to add the Contact form7 plugin to your website. Go to Plugins > Add new and search for Contact Form 7. Then install and activate the plugin.
Step #2. Next step is to create the contact form. Once done you can customise it as on the below screen. Click on Quiz to add a question to the form. We are going to put that between the message body and the submit button. So put the cursor there before clicking the Quiz button.
Step #3. On the below screen you have to add the Quiz and the Answer. The format is Question|Answer. Ex. What is the number between 7 and 9?|8. Once done lick Insert Tag button.
Step #4. Save the form and copy the shortcode. We have to paste that shortcode on our Contact page to show the form there.
2. Google reCAPTCHA
Lets see how we can add Google reCaptcha to our contact form. On the menu go to Contact > Integration. It will require you to provide the Site Key and the Secret Key. First you need to go to google.com/recaptcha. Click ‘get reCaptcha‘. On the next screen you have to register your site to get those keys.
Step #1. Give it a label and pick the type you like. And domain names. Now Register.
Step #2. On the next screen you will be presented with the keys which we are going to use to integrate reCaptcha with Contact Form7. Copy those and paste on Contact > Integration > Configure Keys.
Step #3. Now go to the form you created before. From the top section you have to add the reCaptcha to the form.
Step #4. On the next screen select the theme and size you like to use for the reCaptcha check box. Then ‘Insert Tag‘.
Step #5. Save the form and check the Contact page we added to our website. It will show you a nice check box which we have to check before sending an email through the form.
So only real people can put a check on this. Now you can block bots who sending spam emails through the Contact Form on your website.