阻止临时电子邮件帐户和电子邮件验证

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阻止临时电子邮件帐户和电子邮件验证相关的知识,希望对你有一定的参考价值。

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. }

以上是关于阻止临时电子邮件帐户和电子邮件验证的主要内容,如果未能解决你的问题,请参考以下文章