PHP De IP Banlamak
$ip = $_SERVER['REMOTE_ADDR'];
// Banlamak istediğiniz IP'leri IP.txt dosyasının içerisine yazınız
$ipArray = preg_replace("#\r\n?|\n#","",file('IP.txt'));
foreach ($ipArray as $ipTest) {
if (substr_count($ip, $ipTest) != "0") {
header('location: http://www.mesutpek.com');
die();
}
}