Blacklisting Emails in the Divi Contact Form

Written by Dan Mossop

The Divi Theme's contact form module offers several features to help reduce the volume of spam comments you receive. This include a math-based captcha, and support for Google's ReCaptcha v3.

Despite these, you may still find some spam emails getting through. Another option, which complements these, is to ban particular email addresses or domains from being submitted as the user email.

Examples uses for this are:

1. Ban the specific email addresses of persistent spammers
2. Ban email addresses from a free email provider from which you are seeing lots of spam, and no legitimate emails
3. Ban email addresses from your own domain – useful if you don't send yourself contact form messages and are seeing spammers fake email addresses from your own domain.
4. Ban the use of particular words in email addresses (e.g. "viagra")

Blacklisting Emails using Divi Booster

Divi Booster adds an option to the Divi contact form to allow easy blacklisting of email addresses.

With Divi Booster enabled, you'll see a new option in the contact form settings at:

Contact Form Settings > Content > Spam Protection > Use Email Blacklist

Enable this field to activate the email blacklisting feature

With the email blacklist activated, you'll see a new field for entering the email addresses or domains to blacklist:

Contact Form Settings > Content > Spam Protection > Email Blacklist

The example above shows an email blacklist with with two items. The first line blocks all emails from a particular domain. The second line blocks a specific email address. The third line blocks a particular keyword; if it matches any part of the email address entered by the user, the email address will be blocked.

This feature is available as of Divi Booster 3.1.4.

Configuring the Error Message

By default, When the contact form is submitted with a blacklisted email address, the user will receive an "Invalid Email" message, like so.

You can customize this error message by entering a custom text at:

Divi Booster > Contact Form > Spam Protection > Email Blacklisted Message

Which should display on the front end like so:

The option to set a custom error message was added in Divi Booster v4.0.8.

Enhance Spam Protection with Divi Booster

Tired of spam cluttering your Divi contact form? With Divi Booster, you can now easily blacklist certain email addresses and domains, boosting your site's security and spam control. Tailor your spam protection with simple settings for a cleaner, safer communication channel.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.

Latest Posts

Hide the Page Title in the Hello Elementor Theme

Hiding the page title in the Hello Elementor theme allows you to create a cleaner and more customized page layout, free from default headings that may not fit your design. This is particularly useful for landing pages or custom content layouts where the default page...

How to Hide a Divi Module When Scrolling Up or Down

In this quick tutorial, I’ll show you how to hide a Divi module when scrolling in a specific direction (up or down), so that the module only shows when you want it to. This is especially useful when using Divi’s Scroll Effects feature and you have a effect you want to...

Fade a Divi Image Module Edge into the Background

Want to create a stylish fade effect on your Divi image module—where one side fades smoothly into the background? With a bit of CSS, you can make any edge (or corner) of the image fade out: top, bottom, left, right, or even diagonally.Fade a Divi Image Module Edge...

Hide the Header and Footer in the Hello Elementor Theme

Removing the default header and footer from your Hello Elementor theme allows for a streamlined and distraction-free website design. This is especially useful when creating unique landing pages, full-width layouts, or custom headers and footers with a page builder. In...

Setting up the Divi Password Box Module

Setting up password protection on a page can help you control access to sensitive or private content in WordPress, allowing only authorized visitors to view certain sections. With the Divi Password Box module, you can replace the plain Divi password form with a fully...

Random Posts