我正在创建一个非常具体的蜜罐。 HTACCESS将查看访问者的IP地址,当该IP范围访问该站点时,它会将访问者发送到此页面。当页面加载时,我立即收到一封电子邮件,我希望将用户重定向到另一个站点。但是,用户只是获得一个空白页面。有什么想法吗?
<?php
$to = "xxx@gmail.com";
$subject = "xxx VISIT";
$message = "xxx VISIT";
//mail headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 3\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: \"example\" <admin@example.com>\n";
$headers .= "Return-Path: admin@example.com\n";
$headers .= "Return-Receipt-To: admin@example.com\n";
mail($to,$subject,$message,$headers);
header("Location: https://www.example.com/");
?>