1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
|
<?php
function ipCheck($ip) {
if(in_array($_SERVER['REMOTE_ADD'], $ip)) {
return true;
} else {
return false;
}
}
//Gesperrte IPs
$ip = array("242.168.30.260", "182.359.70.270", "132.251.120.280", "182.159.120.290", "212.128.10.299");
if(ipCheck($ip)) {
header("Location: andereSeite.php");
exit;
}
?>
|