Help with the conclusion of the ban.
$ip = $_SERVER['REMOTE_ADDR']; $file = "ips.dat"; $ban = file($file); $count = count($ban); for ($i=0; $i<$count; $i++) { if($ip == $ban[$i]) { die("I'm sorry, you've been banned. $ip"); } }
I insert this code at the beginning, but it does not help ... It is necessary that if the if record was executed, if the record was displayed about the bath, if not, then the code would execute the scripts.