Login     Sign up
Black list email accounts like 163.com and tom.com
adil (@adil)
Join date: May 9th 2010
Community posts: 202
View Profile
Send Message

alot of my spammers comes from emails like [email protected] or [email protected] ... etc

so in my member.module.php in around line 325 after the email verification I added

[code]
$domain = explode("@", $_POST['email']);
$domain = $domain[(count($domain)-1)];

$myblacklist = array('tom.com', '163.com', 'tom.net', '163.net');
if (in_array($domain , $myblacklist)) {
$errors[] = t('You are spammer and this email is Registered and will be Reported');
}
[/code]
do this and add any domain to the array

with regards

Adil

157 months ago
2
adil (@adil)
Join date: May 9th 2010
Community posts: 202
View Profile
Send Message

I would love to know if it works with you ????

157 months ago
Torsten (@torsten67)
Join date: Oct 22nd 2011
Community posts: 1
View Profile
Send Message

Can't tell you yet. It seems does it stops spam mails like expected. I do not get emails of the filled in endings. Am afraid that it stops all emails becouse I had to add yahoo.com also for stopping the spam flood.

153 months ago
HometownDirectories (@danyaeldemonic)
Join date: Oct 31st 2011
Community posts: 39
View Profile
Send Message

This works with 4.3.1
I added the code, went to another browser and tried to register with a fake 163.com email and I got the correct error message!

Thanks a TON for that little script. I was removing about 10+ every day!

152 months ago