Codice PHP:
<?PHP
$fd = fopen ("ban.txt", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
$buffer= chop($buffer);
$ip = $REMOTE_ADDR;
if ($ip == "$buffer") {
$file = "log.txt";
$log = fopen($file,"a+");
$line = fgets($log, 4096);
fclose($log);
$string = "$ip::PERMISSION DENIED\n";
$log = fopen($file, "a+");
$string = fwrite($log, $string);
fclose($log);
?>
<script language="javascript">
document.location='http://google.it';
</script>
<?PHP
}
}
fclose ($fd);
?>
ce qualcosa di sbagliato dategli un occhiata grazie mille a chi mi aiuta