image showing contact-form

How to stop spam from a website’s contact form.

If your email is flooding with spam, especially those coming through your website’s contact forms, then, here are two ways you can stop or at least reduce the spam you receive from the contact form on your website.

Your inbox looks like this

spam mail

And, when you open any of those emails you told to click some link to see sexy girls or buy viagra or whatever the bots are promoting.

spam emails

Then, clearly your website’s contact forms are not protected against spam.

So, this is what you need to do to STOP spam coming into your inbox from your website’s contact forms.

This article assumes your website is running on the WordPress Content Management System alongside Contact Form 7.

1. Use Google reCAPTCHA

Register your website to use Google reCAPTCHA.

You can go to the reCAPTCHA page here and do that. https://www.google.com/recaptcha/admin/

You need a Google account – if you are already using Gmail or any other Google service, then you have a Google account. Use that.

Once you are logged in, on the dashboard, click the + icon to register your website.

recaptcha image

On the next page, Enter a label – a name that identifies your website, choose reCAPTCHA v3, under domains, add your domain name.
Accept the reCAPTCHA Terms of Service, and then click Submit.

recaptcha register site image

On this page are the keys you will need to integrate with Contact Form 7.

Google recaptcha keys

Now go to the WordPress Admin panel of your website. On the left menu, Under Contact, click Integrations.

contact-form7-recaptcha integration image

Scroll down for reCAPTCHA and Click Setup Integration


In the respective fields, enter the Site Key and the Secret key.
Click Save changes.

image showing where to insert the recaptcha keys on contact form 7

Your form is now protected with Google’s reCAPTCHA.

2. Use the Comment Blacklist

Another easy way to stop spam from your contact form is by using the in-built comment blacklist feature of WordPress.

The changes you make here apply to even the comments on your blog posts.

Now login to your WordPress admin panel.
On the left menu go to Settings then click Discussion.

image showing how to access discussion

Scroll down till you see the Comment Blacklist section.
Inside the text area, enter the words or IP addresses you want to blacklist.

Scroll down and click Save changes.

wordpress comments blacklist

And that’s how to stop spam from a website’s contact form so you can enjoy a clutter-free inbox.

If you are using a different content management system, consult its documentation or contact your developer.

Leave a Reply

Your email address will not be published.

Want to thrive online?

You are good at something. We are good at digital.

We can help you navigate the digital landscape with quality content that you can immediately apply to grow your business online delivered to your email weekly. IT'S FREE!

We HATE spam