You can do both. 🙂
If you put in @yahoo.com, everyone @yahoo.com is blocked, but if you put in foobar@yahoo.com then you ONLY block foobar 🙂
Wow, thank you for the great invention. I’m loving it. Thank you!!! 😀
I’m searching for a plugin where I can say only allow .edu e-mail addresses to register? Is this possible with your plugin?
Not directly.
I mean, you could try to list every possible NON .edu domain but http://wordpress.org/extend/plugins/user-domain-whitelist/ may be more to your liking.
Okay, thanks for the response! I have User-Domain-Whitelist already, but I wasn’t sure if I could simply list ‘.edu’ and not ‘blahblah.edu’, but this is possible?
Try it? It looks like it.
Hi,
Thanks for putting this together.
If I put in just “infoblasters” (without quotes) in my discussion blacklist will it prevent something like feb14_123@infoblasters.com from registering? Or do I have to actually put in the full “@infoblasters.com” ?
Thanks,
Ron
Ok, I guess I can answer my own questions:
1. Yes
2. No
This line (73) of ban-hammer.php
if(stripos($user_email, $blacklist_current) !== false)
Says that if any part of the blacklist string is included in the registering e-mail address, then it will be rejected.
Also as you stated in your documentation, the blacklist strings are copied from the comment blacklist strings.
So… we have to be a bit careful not to put potentially legit domain names in the comment blacklist of words. (I can’t think of one off-hand though.)
And I just tested that on my live site to verify. Nice job ipstenu!
Watch out for ‘parts of words.’
Like I remember having cialis in my blacklist and specialist got caught.