我正在尝试将用户的 IP 与允许的 IP 进行比较。就是说我的IP在回显时是不允许的97.103.49.59You do not have permission to do that.
我试图像这样比较它们:
$ip_address = $_SERVER['REMOTE_ADDR'];
echo "$ip_address";
if(ip_adress=="97.103.49.59") {
header('Location: Blog.php');
} else {
echo "You do not have permission to do that.";
}