How to block fake / temporary / Disposable emails in visichat

Hello Guys

Many site admin turn on account activation to protect  their chat rooms from spammer but the spammer can  register id using fake email address like yopmail ,mailinator and other disposable email domains . Now how to stop these fake email domain because the disposable email domain have a large number of website on internet


You can add few lines into your scripts/signup.php at line 57 to protect your chat room from these  spammers

//Temporary , fake  Email Domains List


$restricted_domains=array("bumpymail.com","centermail.com","centermail.net","discardmail.com","dodgeit.com","e4ward.com","emailias.com","fakeinformation.com","front14.org","ghosttexter.de","jetable.net","kasmail.com","link2mail.net","mailexpire.com","mailinator.com","mailmoat.com","messagebeamer.de","mytrashmail.com","nervmich.net","mails.net","zidiot.de","nurfuerspam.de","oneoffemail.com","pookmail.com","privacy.net","punkass.com","sneakemail.com","sofort-mail.de","sogetthis.com","spam.la","spambob.com","spambob.net","spambob.org","spamex.com","spamgourmet.com","spamhole.com","spaminator.de","spammotel.com","spamtrail.com","trash-mail.de","trashmail.net","wuzup.net","dodgeit.com","e4ward.com","kasmail.com","spam.la","mailmoat.com","netmails.net","spammote.com","trashmail.net","yopmail.com");
$it=split("@",strtolower($email));

//Check if a user is using fake email and this email in our array
 if(in_array($it[1],$restricted_domains)){
    exit(
'&result=email_not_allow&load=ok');

Add this line into your language file e.g languages/en.xml to show different error message 
  <email_not_allow>This email address is not allowed ! </email_not_allow

If  you want to allow only specific doamin you can use this syntax

 //Allow domain array . to add more user comma in $allow_domain string
$allow_domains=array("gmail.com","yahoo.com","hotmail.net","aol.com","ymail.com");
$it=split("@",strtolower($email));

//Check doamin
if(!in_array($it[1],$allow_domains)){
exit('&result=email_not_allow&load=ok');
}

 

Add this line into your language file e.g languages/en.xml to show different error message 
  <email_not_allow>This email address is not allowed ! </email_not_allow

I Hope it will help you ! you 've any question about this tutorial you can post here

Please share this tutorial with your friends ! Thanks

No comments:

Post a Comment

Have a question?Use comment form !