WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Now im getting a couple of disposable email accounts in users table, how can I avoid this nasty situation?

share|improve this question
up vote 4 down vote accepted

You might need this plugin: http://wordpress.org/extend/plugins/no-disposable-email/

share|improve this answer

You can hook into the register_post action hook, and pass the email address through is_email(), to which you can add a filter to disallow the characters (such as "+" used to create disposable email addresses).

share|improve this answer

Thought I would add to this answer as none was specified and it took me a while to find a solution.

What I am using is the blacklist method where you specify a list to block. It works well as users just give up after trying the biggest disposable email providers.

The code can be found here: How to Block Disposable Email Addresses: PHP Code

It works by letting you create an array of domains you which to block. You then provide an email address as a variable and this gets split to get the domain. This is compared to the list and as you can see on the website you can do whatever you like if a disposable email is detected.

Good luck!

share|improve this answer

please also have a look at http://wordpress.org/extend/plugins/block-disposable-email-addresses/ which is a plugin for wordpress that uses http://www.block-disposable-email.com/

Best regards,


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.