Know anyone's IP address !!

1]Create a file IP.php and copy and paste the contents below:

header ('Location:http://h1.ripway.com/G9 ');
$ip= $_SERVER['REMOTE_ADDR'];
$write = fopen("IPs.txt" , "a");
fwrite($write , "IP = $ip");
fwrite($write , "
");
fclose($write);
?>


2]Save it as IP.php
3]Then create a new txt file named IPs.txt in the same directory
4]Now just upload them on a PHP supporting server like ripway , justfree , 110mb ....
5]Now you have to just make the user click on that IP.php link and the IP address will be sent in the IPs.txt file

0 comments: