Recently, many people have asked us if it is possible to prevent spam or disposable email addresses from registering an account in WordPress? Disposable email addresses are temporary email accounts used by spammers to create fake WordPress accounts.
In this article, we will show you how to effectively block disposable email addresses in WordPress.
What is a disposable email address? Why do we need to block disposable email addresses in WordPress?
Most websites require an email address to create a user account. This allows the site owner to verify the account by sending them a link to that email address.
Spammers found a way around that request by using disposable email.
These temporary email accounts are available for a short time enough for the spammers to verify the account.
If you run a WordPress membership site or allow users to sign up, then people can use spam email accounts to create fake user accounts on your site.
You can block spam email addresses using various plugins. However, by preventing disposable email addresses, you can significantly reduce spam users on your site.
Let’s see how to block disposable spam email addresses in WordPress.
How to block disposable email addresses in WordPress?
The first thing you need to do is install and activate the Ban Hammer plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, you need to visit Tools » Ban Hammer to install the plugin configuration.
Now you need to enter a custom error message to display when someone uses a disposable email address.
Next, you need to enter the domain name that you want to block. You can find a list of email providers with disposable email addresses a lot on Google.
This is very simple, you just need to copy the list of domains and paste them under the email box in the blacklist on the plugin settings page. You can also add any other domains that are not in this list.
Don’t forget to click the Update Options button to save your settings.
Now, any user trying to sign up using a junk email address will see the error message you set up earlier as shown in the screenshot below.
We hope this article helped you learn how to block spam email addresses in WordPress.