note 71634 deleted from function.strstr by nlopess
| From: | nlopess@php.net | Date: | Fri, 05 Jan 2007 20:33:54 +0000 |
| Subject: | note 71634 deleted from function.strstr by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121337@lists.php.net to get a copy of this message | ||
Note Submitter: tom at noname dot com
----
This function will check for addresses from common temporary email domains. In my experience users
registering with these addresses are commonly site spammers, hackers or others intent on abusing
websites via multiple accounts.
<?
function is_temp_email($email)
{
$tmp_mail_doms = array
(
"mytrashmail","mailinator","mailexpire","jetable",
"temporaryinbox","spamhole","spambox","pookmail",
"dontreg","prospector.cz","kasmail","spamgourmet",
"10minutemail","lifehacker","tempemail","maileator",
"theanonymousemail","tempinbox","mailnull","spamfree24",
);
foreach ($tmp_mail_doms as $domain)
{
if (strstr($email,$domain))
{
return (true);
}
}
return (false);
}
?>