我想在我的网站上注册时阻止临时邮件。我试试这个:
$email = htmlspecialchars($_POST['email']);
$tempmail = array("@4tmail.com", "@mail3.top", "@mail3plus.net", "@mailfile.org", "@themail3.net", "@mail3tech.com", "@tmailer.org", "@mail3x.net", "@tmails.top", "@tmail2.com");
$iftmp = strpos($email, $tempmail);
if ($iftmp == true){
die("Bad Email");
}
但不工作
繁花如伊
富国沪深