Today am going to tut you on how to get your friends ip address using php.Just follow these simple steps1) copy the below code and paste it in the notepad(code must be the same) :<?php $ip =$_SERVER['REMOTE_ADDR'];$open = fopen('logs.html' , 'a+');$fwrite = fwrite($open , $ip.'< hr />'); $fclose = fclose($open); header('Location: https://www.facebook.com /xyz'); ?>2) now save as index.php3) Then go to any free web hosting site And sign up4) go to files-->files manager 1--> and upload the code [index.php] that you saved earlier GO5) Now send the domain that you register and upload the code to your friend if he click that , automatically you will get the ip address in the logs html
No comments:
Post a Comment