Filed under: Tools,Web Technologies — Scott @ 12:55 pm
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Â
Popularity: 36% [?]
Like it? Subscribe to the blog if you haven't already
Related Posts
-
Registration Blacklist Plugin, updated
Ban email domains plugin updated.
What can I do for you?
Redirect Homepage WordPress Plugin






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!
[...] 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 … [...]
[...] 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. [...]
[...] A Registration Blacklist allows the banning use of specific email addresses and domains from user registration. [...]
Work on WordPress registration…
A more usable but less effective method of achieving the same thing can be found here….
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.
[...] 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. [...]
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!
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 :-)
I have installed and activated, but panel have not add. What should i do?
please help. Thank you.
I have install this plugin and I had the same problem, but I solved ! ;) xaxa
The solution is this :
In some places inside the code there are sort open tags for php so change the <? with <?php and you will solve the issue ! ;)
Ah !
This plugin is realy very very cool ! :) thanks a lot :)
What version of wordpress are you using ?
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?
Yes Matt thats correct
Great – thanks again. :-)
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
No I don’t have a way in there to do that but I’ll add one.
Can you give some advice as to which email domains to put into the blacklist other than mail.ru and web.de?
I banned all russians the whole .ru domain.
cashette.com/cachette.com is pretty crappy too.
Wwhitelisting/limiting to specific domains would be great as Evan said. Thanks!
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.
[...] 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. [...]
[...] Visit [...]
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 :)
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!
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.
[...] in January I got fed up with throw away email accounts being used to register bogus user accounts on my blog. People using [...]
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?
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.
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
Yeah its not going to work for that version of WP anymore. You need to upgrade if you can to use it.
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 ?
You can use the pre 2.1 version with is here:
http://web-professor.net/shared/wp-plugins/registration_blacklist-pre2.1.zip
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.
I have just installed your plugin on a new blog I am doing and first – thank you!
Thanks for the plugin…very useful…
[...] am using a WordPress plugin “Registration Blacklist” on the mattwardman.com to prevent users from certain domains registering [...]
[...] am using a WordPress plugin “Registration Blacklist” on the mattwardman.com to prevent users from certain domains registering [...]
Thanks a lot! That was EXACTLY what I was looking for! It’s simple, effective, perfect!
[...] been using Registration Blacklist from Web-Professor.net to blacklist domains that bots and spammers use, but the drawback is we [...]
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!
I’ll take a look at it. Everytime WordPress upgrades their effing system they do their best to break their API.
[...] Visit & Download [...]
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
[...] your using the Registration Blacklist plugin theres an update to it. ( Thanks Paul for pointing out the problem. [...]
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?
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.
I have the same problem :( help please …
Its workin gfor me let me know what the issue is please.
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.
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!
[...] I installed the Registration Blacklist plugin by Scott Horne. I kept getting a new user registration (sometimes several per day) from komatoz.net [...]
[...] 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. [...]
Oh no, I have updatet WordPress from 2.3 to 2.6
now “registration_blacklist” don´t work, pleas help.
Its working for me.. whats broken for you?
How can I use this brainwave with WordPress 2.6 ???
Yes Its for working me too..
[...] questo semplisissimo plugins di nome Registration Blacklist che da la possibilità di bloccare tutti gli indirizzi email che volete oppure i [...]
There’s a domain doing content scraping from my website… How can I block any traffic or bot from a domain? Any Ideas?
That really depends on how persistent they are. Do you know where the bot is coming from?
I would start with a DMCA notice to their web host.
Hi, I have tried to install on version 2.9.2 and get this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘webprofessor_blacklist’ does not have a method ‘add_admin_menu’ in D:\path\wp-includes\plugin.php on line 339
Can you help? thanks
Hi- will this work for 2.9.2? I have installed the latest version (for 2.2) but I don’t see it in my options page. I’m so tired of my .ru subscribers. Would love to have this work. Also, my persistent .ru subscriber has been able to change their permissions from Subscriber to Admin. I have no idea how and would love to block him. Thanks!
people will go for alternate disposable emails
Likewise, I don’t have an “Options” page. Likewise, I’m SICK AND TIRED of the .ru subscribers. Damn them! Looking elsewhere for solutions. But thanks for making this, as it seems to work for many many others.
Hi dude..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.