Posted By

ginoplusio on 12/05/13


Tagged

email validation account Temporary


Versions (?)

Block temporary email account and email validation


 / Published in: PHP
 

URL: http://www.barattalo.it/2013/12/03/block-junk-emails-spammers-temporary-emails/

Sometimes fake users use temporary emails account. Block them within email validation function.

  1. function is_email($Address) { /* verifica la correttezza di una mail*/
  2. if(stristr($Address,"@yopmail.com")) return false;
  3. if(stristr($Address,"@rmqkr.net")) return false;
  4. if(stristr($Address,"@emailtemporanea.net")) return false;
  5. if(stristr($Address,"@sharklasers.com")) return false;
  6. if(stristr($Address,"@guerrillamail.com")) return false;
  7. if(stristr($Address,"@guerrillamailblock.com")) return false;
  8. if(stristr($Address,"@guerrillamail.net")) return false;
  9. if(stristr($Address,"@guerrillamail.biz")) return false;
  10. if(stristr($Address,"@guerrillamail.org")) return false;
  11. if(stristr($Address,"@guerrillamail.de")) return false;
  12. if(stristr($Address,"@fakeinbox.com")) return false;
  13. if(stristr($Address,"@tempinbox.com")) return false;
  14. if(stristr($Address,"@guerrillamail.de")) return false;
  15. if(stristr($Address,"@guerrillamail.de")) return false;
  16. if(stristr($Address,"@opayq.com")) return false;
  17. if(stristr($Address,"@mailinator.com")) return false;
  18. if(stristr($Address,"@notmailinator.com")) return false;
  19. if(stristr($Address,"@getairmail.com")) return false;
  20. if(stristr($Address,"@meltmail.com")) return false;
  21. return preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,6})$/i", $Address);
  22. }

Report this snippet  

You need to login to post a comment.