Subscribe: Subscribe in NewsGator Online

January 14, 2007

New Wordpress Plugin - Ban email domains from user registration

Filed under: Tools, Web Technologies — Scott @ 12:55 pm
Add

UPDATE: The plugin has been updated to work with wordpress version 2.2


I have been getting user registrations from throw away domains. I created this plug in that allows the banning of domains and email addresses. To install unzip it, drop the file into the plugin directory, and activate it from the plugin menu.

After installation you will find a new panel added to in the “Options” administration section called “Registration Blacklist”. Selecting this will show a text box. Simply add domains or full email addresses that host email accounts that you don’t want to be used to register a user account.

For instance I added the “mail.ru” and the “web.de” domains because all the users registered from there were bogus.

LATEST VERSION: http://web-professor.net/shared/wp-plugins/registration_blacklist.zip

 pre Wordpress 2.2 version: http://web-professor.net/shared/wp-plugins/registration_blacklist-pre2.1.zip 


Like it? Subscribe to the blog if you haven't already
Digg!

Related Posts


RSS feed | Trackback URI

57 Comments »
Comment by Caydel
2007-01-14 13:13:00

Thanks for posting this, Scott - This plugin will be extremely useful on a blog I manage for a friend where we’ve been having this exact problem!

 
2007-01-14 23:18:12

[...] Registration Blacklist: Prevent registration and subsequent spam on your Wordpress blog by preventing registration from blacklisted domains and email addresses. Although I am not sure that requiring registration for comments is such a hot idea, this plugin might be useful for those that have set that flag but are still facing spam problems or bogus registrations. (3 votes, average: 4.33 out of 5)  Loading … [...]

 
2007-01-15 03:39:28

[...] Registration Blacklist: Prevent registration and subsequent spam on your Wordpress blog by preventing registration from blacklisted domains and email addresses. Although I am not sure that requiring registration for comments is such a hot idea, this plugin might be useful for those that have set that flag but are still facing spam problems or bogus registrations. [...]

 
2007-01-15 05:32:11

[...] A Registration Blacklist allows the banning use of specific email addresses and domains from user registration. [...]

 
Trackback by Exiled from GROGGS
2007-01-15 10:46:58

Work on Wordpress registration…

A more usable but less effective method of achieving the same thing can be found here….

 
Comment by Scott
2007-01-15 11:51:48

I disagree with some of the assertions that the plugin is only a reactive solution. You don’t just ban specific emails, you can also ban whole domains. Usually fake registrations come from domains like “hotmail.com” or some other free email provider. Using this plugin you can ban those domains from being used with email accounts during registration thus preveting the whole issue before it even starts.

As an example I used to receive at least 3 registrations a day from bots using the “mail.ru” domain for their email service. Once I banned that domain the issue was solved.

 
2007-01-15 17:35:27

[...] Ban those spam domain January 15th, 2007 by Kamrul Like anyone else i hate spammers. I guess Scott over Web Professor was having same kind of trouble, most blogger face. Registration from awful, non active and known trouble making domains. No worry Scott just came up with a WordPress plugin to ban domains and email addresses. [...]

 
Comment by Paolo Gabrielli
2007-01-24 08:16:27

Great and usefull plugin.
Just installed and used why I receive registrations from spam bot from @gawab.com & @cashette.com (!).
Only a little glitch that my textbox area (where to put domains) was full of a PHP “while” error message gone away after I removed it inserting the first domain.
Thanks again!

 
Comment by Scott
2007-01-24 08:59:17

Paolo thank you for the feedback. I’ll look at that error and see if I can prevent it today. I am glad your finding it useful :-)

 
Comment by saina.it
2007-02-05 07:28:35

I have installed and activated, but panel have not add. What should i do?
please help. Thank you.

 
Comment by Scott
2007-02-05 10:59:13

What version of wordpress are you using ?

 
Comment by Matt McGee
2007-02-08 18:28:36

This looks great, Scott - thanks for doing it. Can I assume correctly that I should enter domains/addresses one per line in that big text area?

 
Comment by Scott
2007-02-08 18:29:26

Yes Matt thats correct

 
Comment by Matt McGee
2007-02-09 03:00:12

Great - thanks again. :-)

 
Comment by Evan
2007-02-16 04:58:01

Hey I was wondering if there was a way to do the opposite, that is only allow registration of a specific domain. Everyone I want to included goes to my university and has a university email, this would very much simplify things

 
Comment by Scott
2007-02-16 08:43:26

No I don’t have a way in there to do that but I’ll add one.

 
Comment by Dude
2007-02-22 10:14:49

Can you give some advice as to which email domains to put into the blacklist other than mail.ru and web.de?

 
Comment by Scott
2007-02-22 12:11:19

I banned all russians the whole .ru domain.

cashette.com/cachette.com is pretty crappy too.

 
Comment by Matthew
2007-04-04 16:33:11

Wwhitelisting/limiting to specific domains would be great as Evan said. Thanks!

 
Comment by Docquesting
2007-04-25 00:11:47

Thanks so much for creating this. I hope you continue to add other features to it. After putting up a site for a friend using wordpress I started to notice strange registrations. Thanks to you these should be easier to manage.

 
2007-05-08 16:31:51

[...] I have been pumping out frees scripts and code too. Recently I made two wordpress plugins. The first one is the delicious bookmark plugin that tracks how many times a post has been bookmarked. Then I made the Registration Blacklist that allows you to blacklist email domains from being used to register user accounts ( basically you need to ban all of Russia ). I got a lot of great feedback on the blacklist plugin and the delicious plugin. For developers and seo’s I have scripts to hide text from search engines, obsfucate text and generate common typos. Lets not forget about the PHP class that stores a tree structure in mySQL, that one is popular with the geeks. Thats not even all of them there are plenty more and the script list is only going to grow. [...]

 
2007-05-20 03:57:15

[...] Visit [...]

 
Comment by 10ha10ha
2007-05-20 12:03:13

it’s not working on wordpress 2.1 & 2.2 (i’m using those version currently)
is it possible to port it to the latest version?
thanks in advance :)

 
Comment by Erick Schluter
2007-05-31 15:15:30

And…Is it working on wordpress 2.1 & 2.2? Or is it better to wait for a current version? I would like to use it…Seems brilliant!

 
Comment by Scott
2007-05-31 16:43:47

Just so everyone knows I have updated the plugin to work with the new version of wordpress. You can download it and install it now.

 
2007-05-31 16:56:32

[...] in January I got fed up with throw away email accounts being used to register bogus user accounts on my blog. People using [...]

 
Comment by Jonathan
2007-06-12 23:05:53

Do we need to include the @ for the e-mail addresses (such as @mail.ru) or is it okay to just do mail.ru? What about other domains. Do we need to do http://www.hotmail.com (or http://www.hotmail.com)? Can we use * for a catchall such as *@mail.ru. Or, is that not needed?

 
Comment by Scott
2007-06-13 00:10:32

No need to do any of that, it matches from the end. So just enter “mail.ru” to block everything from that domain or even just “.ru” to block all russian domains. remember to omit the quotations.

 
Comment by Paulo
2007-07-18 10:29:48

Hi Scott

I installed your plugin in wordpress 2.0.3 but when I go to options->registration blacklist I have the following warning in the message box where you are suposed to add the email domains: ”
Warning: Invalid argument supplied for foreach() in /home1/WEB/alba/htdocs/docs/blog/accent/wp-content/plugins/webprof_registration_blacklist/webprof_registration_blacklist.php on line 120

Thanks for any help

Comment by Scott
2007-07-19 11:30:08

Yeah its not going to work for that version of WP anymore. You need to upgrade if you can to use it.

 
 
Comment by Glenn Dixon
2007-08-14 06:26:23

I get the following error when activating:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘webprofessor_blacklist::add_admin_menu’ was given in C:\wamp\www\thedixons\wp-includes\plugin.php on line 123

WP v. 2.1.3 - does this plugin now require v. 2.2 ?

Comment by Scott
2007-08-14 12:49:15
 
 
Comment by dissi
2007-09-05 16:52:26

hi, thank you for the plugin, but in my case it doesn’t seem to work. i did send myself a password, i tested it with myself as a bogus person and before i did this i have put the domain on the blacklist.
but the registration process took place like it always does. i have got the email and i logged myself in.
maybe it is because the other plugin i use: “themed login and register“, i’m not sure.

 
Comment by Manele
2007-09-06 13:04:22

I have just installed your plugin on a new blog I am doing and first - thank you!

 
Comment by Sazkul
2007-09-16 04:18:28

Thanks for the plugin…very useful…

 
2007-09-16 04:24:05

[...] am using a Wordpress plugin “Registration Blacklist” on the mattwardman.com to prevent users from certain domains registering [...]

 
2007-09-16 05:05:53

[...] am using a Wordpress plugin “Registration Blacklist” on the mattwardman.com to prevent users from certain domains registering [...]

 
Comment by Tehem
2007-11-07 00:02:34

Thanks a lot! That was EXACTLY what I was looking for! It’s simple, effective, perfect!

 
2007-11-07 18:31:16

[...] been using Registration Blacklist from Web-Professor.net to blacklist domains that bots and spammers use, but the drawback is we [...]

 
Comment by Sol
2007-11-08 14:01:04

Your plugin is exactly what I was looking for due to the constant “.ru” user registrations, but when I tried to activate it today using WP 2.3.1 I got the error:

Fatal error: Cannot redeclare get_users_drafts() (previously declared in /home/******/******/wp-admin/includes/user.php:233) in /home/*****/*****/wp-admin/admin-db.php on line 3.

Any ideas about what is going wrong? Thanks!

Comment by Scott
2007-11-13 13:42:18

I’ll take a look at it. Everytime Wordpress upgrades their effing system they do their best to break their API.

 
 
 
Comment by Paul
2007-12-09 08:04:18

Hi Scott… just wondering if there had been any progress on the ‘whitelist-only’ addition? That would be very useful in my situation! (blog for a school… the only comments should be from staff and students within it). Thanks

 
2008-01-17 16:05:31

[...] your using the Registration Blacklist plugin theres an update to it. ( Thanks Paul for pointing out the problem. [...]

 
Comment by Talyn
2008-01-19 11:38:05

This might be what I’m looking for, but I’m wondering if I can specify a pattern (regex?) rather than blacklisting an entire domain? Specifically my blog has been hit for the past month or so with daily bot registrations using the pattern ab123456@yahoo.com. I have normal readers who use yahoo mail so it’s safe to assume I may get more legit yahoo users in the future, but I’d like to disallow registration of that pattern (or any other future pattern I notice). Will this allow pattern matching?

 
Comment by Terry
2008-02-16 21:04:23

This will not install for me on Wordpress 2.3. I grabbed the newest version and I receive the following error: Plugin could not be activated because it triggered a fatal error.

Comment by NeoSwf
2008-09-10 13:26:59

I have the same problem :( help please …

Comment by Scott
2008-10-08 16:21:53

Its workin gfor me let me know what the issue is please.

 
 
 
Comment by Kathy
2008-04-03 18:12:56

Is there a way to “unblacklist” an address if you make a mistake? I noticed that once I put them in the text box, they seem to be gone forever, which makes sense, but what if you would like to “rescue” an address.

Thanks! It’s a great plug in.

 
Comment by Sparkzy
2008-04-08 11:27:13

For the past three weeks I’ve been getting up to three registrations a day from ukr.net. This plugin is going to solve that problem quite nicely. Thanks!

 
2008-05-01 16:20:45

[...] I installed the Registration Blacklist plugin by Scott Horne. I kept getting a new user registration (sometimes several per day) from komatoz.net [...]

 
2008-05-05 17:35:25

[...] New Wordpress Plugin - Ban email domains from user registration I have been getting user registrations from throw away domains. I created this plug in that allows the banning of domains and email addresses. To install unzip it, drop the file into the plugin directory, and activate it from the plugin menu. [...]

 
Comment by Trelas
2008-09-16 07:23:25

Oh no, I have updatet Wordpress from 2.3 to 2.6
now “registration_blacklist” don´t work, pleas help.

Comment by Scott
2008-10-08 16:21:22

Its working for me.. whats broken for you?

 
 
Comment by Trelas
2008-09-22 06:02:07

How can I use this brainwave with Wordpress 2.6 ???

 
Comment by SEO Consultant
2009-04-25 23:01:12

Yes Its for working me too..

 
2009-05-12 10:08:45

[...] questo semplisissimo plugins di nome Registration Blacklist che da la possibilità di bloccare tutti gli indirizzi email che volete oppure i [...]

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.