Last active
December 15, 2015 03:29
-
-
Save l4ci/5195015 to your computer and use it in GitHub Desktop.
Check Email Domain for trash/one-way-email #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Checks Email Domain for trashmail | |
* | |
* @param string $email | |
* @return boolean true/false | |
*/ | |
function trash_email($email){ | |
$array = explode("@",$email); | |
$domain = $array[1]; | |
$domains = array("0clickemail.com","10minutemail.com","prtnx.com","tyldd.com","uggsrock.com","akapost.com","anon-mail.de","anonbox.net","anonymbox.com","antispam.de","antispam24.de","b2cmail.de","dodgeit.com","dodgit.com","dontsendmespam.de","dotman.de","e4ward.com","eintagsmail.de","emailgo.de","emailias.com","getonemail.com","guerrillamailblock.com","jetable.org","kasmail.com","mail4trash.com","maileimer.de","mailexpire.com","binkmail.com","mailin8r.com","mailinator.com", "mailinator.net","mailinator2.com","slopsbox.com","sogetthis.com","spamherelots.com","thisisnotmyrealemail.com","tradermail.info","zippymail.info","mailshell.com","mailtrash.net","makemetheking.com","mbx.cc","mt2009.com","mytrashmail.com","thankyou2010.com","trash2009.com","trashymail.com","nervmich.net","nervtmich.net","wegwerfadresse.de","ohaaa.de","privy-mail.de","quickinbox.com","safetypost.de","schmeissweg.tk","schrott-email.de","secretemail.de","senseless-entertainment.com","shieldemail.com","sneakemail.com","sofort-mail.de","spam.la","spamavert.com","0815.ru","3d-painting.com","bio-muesli.info","bio-muesli.net","cust.in","discardmail.com","discardmail.de","great-host.in","imails.info","kulturbetrieb.info","nomail2me.com","nospamthanks.info","recode.me","sandelf.de","spambog.com","spambog.de","spambog.ru","teewars.org","thanksnospam.info","spambox.us","spamcero.com","spamex.com","spamfree.eu","spamfree24.com","spamfree24.de","spamfree24.info","spamfree24.org","antichef.net","spamgourmet.com","spammotel.com","spamobox.com","spamspot.com","spamtrail.com","fivemail.de","giantmail.de","spoofmail.de","tempail.com","tempemail.net","beefmilk.com","dingbone.com","fudgerub.com","lookugly.com","smellfear.com","tempinbox.com","temporarily.de","temporaryinbox.com","topranklist.de","trash-mail.com","trash-mail.de","trashdevil.com","trashdevil.de","trashmail.net","twinmail.de","wasteland.rfc822.org","wegwerf-email.net","wegwerfemail.com","wegwerfemail.de","wh4f.org","yopmail.com","youmailr.com","zehnminuten.de"); | |
if (in_array($domain,$domains)){ | |
return false; | |
}else{ | |
return true; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment