$myfile = fopen("baza","a"); if(!($myfile)) { print("Błąd"); exit; } $data = date("d-m-Y H:i"); $ip1 = gethostbyaddr($_SERVER['REMOTE_ADDR']); $ip2 = gethostbyaddr("$ip1"); if ($ip2 <> "router.eia.pl"&$ip2 <> "127.0.0.1") {fputs($myfile, "$HTTP_USER_AGENT\n$data $ip2\n");} fclose($myfile); ?>