Topic: IP logger for better security
I've found a script to log the users IP adresses.
Now trying to get it into VLD...
<?
// defineer bestand waarin ip's worden opgeslagen
// doe dit bestand: chmod 777
$file = "cfgs/ip.dat";
// pak het ip adres
$addr = $_SERVER['REMOTE_ADDR'];
// open bestand voor "append" (=toevoegen op einde)
$openfile = fopen($file, "a");
// schrijf het IP-adres
fputs($openfile, "$addr<br>\n");
// sluit het bestand
fclose($openfile);
?>
http://forum.pcmweb.nl/archive/index.php/t-7724.html
Last edited by godyn (2010-06-26 04:24:10)