Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Block Disposable Email Addresses in WordPress

Recently, one of our readers asked if it’s possible to block disposable email addresses 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.

Block disposable email addresses in WordPress

What are Disposable Email Addresses and Why Block Them in WordPress

Most websites require an email address to create user accounts. This allows website owners to verify accounts by sending them a link to that email address.

Spammers found a workaround to that requirement in shape of disposable emails. These temporary email accounts are available for a short duration allowing spammers to verify an account.

If you run a WordPress membership site or allow user registration, then people can use those disposable email accounts to create fake user accounts on your website.

You can block spam user registrations using different plugins. However by blocking disposable email addresses, you can significantly reduce spam user registrations on your website.

Having said that, let’s take a look at how to block disposable email addresses in WordPress.

Blocking Disposable Email Addresses in WordPress

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 page to configure plugin settings.

Settings page for Ban Hammer plugin

Now you need to enter a custom error message to show when someone uses a disposable email address.

Next, you need to enter the domain names you want to block. You can find a list of the most commonly used burner email providers as a txt file on GitHub.

Simply copy the list of domains and paste them under blacklisted emails box on plugin’s settings page. You can also add any other domains that are not included in this list.

Don’t forget to click on the Update Options button to store your settings.

Any users who now try to register using a disposable email address will see the error message you defined earlier.

Disposable email address error

We hope this article helped you learn how to block disposable email addresses in WordPress. You may also want to see these 12 vital tips and tools to combat comment spam in WordPress

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

9 CommentsLeave a Reply

  1. Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Ban Hammer is no longer available on wordpress.org. it was removed at the author’s request.
    I wish someone would pick it up.
    I need a new one that’s preferably free. I have 10+ sites that need it.
    Mitch

    • Thank you for letting us know, we will be sure to look for an alternative option for us to update this article :)

      Admin

  3. Do you know of a plugin that allows you to block domains on forms throughout the site? I tried the Gforms code snippet extension with no luck. A plugin that allows sites to prevent specific domains from successfully filling out forms would be a huge help if you know of something like that.

    Thanks!

    • Hi Michael, did you find a solution ? I would be very interested to know how to solve the same issue..

  4. I have hundreds of people signed up as users on my blog/site. I went through and blocked most of the addresses that seemed like spam, but I wondered if there is a way to find out if registered users are spam or actual followers?

  5. Hello
    Thanks for all your great tutorials. I wonder IF u can assist me?
    I have i Site were i show my future customers How there site would look like if the let me build it for them!
    I usualy sets a password to That page so that only that One customer can see it.

    Do you know of Any way for me to see if anyone is login in to the site?
    Would be nice for me to know if the are active at all. Or if i should get my offer to another client!

    Best regards
    Urban Eriksson

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.