Monday, August 19, 2013

How to get ip address of facebook friend

  First open notepad and paste this code 

$dt = date("l dS \of F Y h:i:s A"); 
$data = $ip.' '.$dt."\n"; 
fwrite($file, $data); 
header( 'Location: ; 
Replace the black highlighted text with your picture or page link and now click save as and select all files and name it  as 


1)Go to any webhosting site like
2) Signup for an account ( choose a right domain name e.g : )
3) After creating an account on x10hosting, go to the File Manager and open the public_htmldirectory

4) Click Upload, and select the PHP file that you created on Step1.4 (ip.php)

5) Select all permissions from Read/Write/Execute (777)

Step 3 getting the ip address 

After setting up an account and uploading the .PHP File, it's time to get IP Address of any Friend on Facebook
1) Go to the domain that you created in Step2. in my example
2) You'll see the PHP file that you created, right click>Copy Address Link
3) The link will be something like this :
In our example it will be:
4) Send that link to any of your friends, after he/she clicks on the link, he/she will be redirected to the link that you replaced in step1.3 (in my example : )
5) Go to your domain name again like step1 (e.g:
6) You'll see a new text document named ip_log.txt
7) Click that file, you'll get all IP Addresses of your friends that accessed that link.
Done!  Now you can track their IP Location using IP Tracer,
                            Please leave comments if it works :D

No comments:

Post a Comment