Kyle.T
07-20-2003, 06:03 PM
Does anyomne know a code for an IP Tracer
|
View Full Version : IP Tracer Kyle.T 07-20-2003, 06:03 PM Does anyomne know a code for an IP Tracer djdaz 07-21-2003, 11:29 AM if your after one if PHP <?php $logfile = dirname(__FILE__) . '/404_log'; $handle = @fopen($logfile, 'a'); @fwrite($handle, 'Visitor: ' . GetIP() . "\n" . "\n" ); @fclose($handle); function GetIP() { if (empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { return $_SERVER['REMOTE_ADDR']; } else { return $_SERVER['HTTP_X_FORWARDED_FOR']; } } ?> That will make a file on your webspace called 404log and put all ips in it. If your after one in another language then i cant be of any help. Let me kno if you have any problems with it. |