al posto di echo
Code: Select all
<?php
$blacklist = array(
"/93./",
"/94.36.15.13/",
"/81.22.34.12/"
);
$client = $_SERVER['REMOTE_ADDR'];
foreach($blacklist as $ip) {
if(preg_match($ip, $client)) {
header("location: http://www.google.com/");
exit();
}
}
?>
<html>
<body>
<p>Ipnonbannato</p>
</html>
</body>









