How to trace & get IP Address of Target Person
By Chandan Singh
IP (Internet Protocol) Address is one of the most important components or part of the internet, as well as cyber forensics. With the help of IP address all digital devices, computers communicate with each other, and this is allotted to that device, such as static or dynamic. That all the reasons law enforcement agencies are using IP address to trace Cyber Criminal.
This tutorial helps to get IP address with time and referrer of URL. Instead, there are many online websites, through you can get the IP address of any person by sending a link, But I recommend you to create your own IP grabber PHP Script.
Prerequisites:
- PHP Script of IP Grab
- Web hosting Sites
PHP Script of IP Grab
PHP is programming language which was established as create websites, PHP has some good programming code so you can easily get the IP address, Timing, Referrer, User Agent (Details of browser and operating system). Before the bind off all code here is the short and basic description of all code. So you can understand that how is it work.
Get IP Address
$_SERVER[“REMOTE_ADDR”]
This code is used for getting remotely IP address of the victim. Basically, its grab the server IP which victim is using that time.
Get User Agent
$_SERVER[‘HTTP_USER_AGENT’]
User Agent is acting on behalf of the user to the browser and other requests and responses. Web Browser telling a website information all about the operating system and browser.
Referrer Page
$_SERVER[“HTTP_REFERER”]
This script of code is used to get referrer of your link. For example, you send IP Grab script through facebook chat, then in a referrer, you can see facebook URL. This will help you for getting IP address of two or more victims.
Get Time
$n = time();
$t = gmstrftime(“%a, %d %b %Y %H:%M:%S GMT”, $n );
This script of code is used to get time of click on that URL which you send to victim.
Now create a combine file so you can easily grab victim’s IP Address so just open notepad on your computer and copy paste below script.
<?php
$f=fopen(“ip.txt”,’a’);
$n = time();
$t = gmstrftime(“%a, %d %b %Y %H:%M:%S GMT”, $n );
fwrite($f,”IP=”.$_SERVER[“REMOTE_ADDR”].”\n”);
fwrite($f,”user agent=”.$_SERVER[‘HTTP_USER_AGENT’].”\n”);
fwrite($f,”Referer Page=”.$_SERVER[“HTTP_REFERER”].”\n”);
fwrite($f,”TIME=”.$t.”\n\n\n\n”);
fclose($f);
?>
Now save this notepad file with the name of ipgrab.php (.php is the must).
Web Hosting Sites
What is Web Hosting Sites
Web Hosting sites or web host service providers, provide the service needed for any website to be view on the internet. They give facilities to host a website, if we talking about normal words, Hosting sites provide a part of the land to build the personal house, so other users can see, meet, communicate.
If you have web hosting sites or want to purchase then there are a lot of websites, purchase them according to your requirements. But as well as a lot of websites provide free web host. I recommend you to use www.000webhost.com or you can use another also, just google with free web hosting site and you have a lot of option to create an account on the free web hosting sites.
In this tutorial I am using www.000webhost.com So just open website and click sign up for free and fill your name, email address, strong password, and your domain name, if you have your own domain, then click on Own Domain otherwise select Free Subdomain and create according to your requirement, I am using cyberopsdemo subdomain. Now click on I’m not a robot and after completion, all basic formalities to GET FREE HOSTING.
It will send you a confirmation mail on your email ID. so open your mail and click on URL for confirmation that your email id is correct.
After Email Confirmation, Your website status will change, waiting for confirmation to Active and 000webhost.com is provide your control panel for uploading web pages.
Now you can see on the right side, there are Customer Details, in which password option is also, so click on Change and manage your new password. Basically, it’s an FTP( File Transfer Protocol) password.
Note: Do not add blank space in a password, due to there 000webhost password policy.
Now scroll down the list and locate File Manager option
Go to First File Manager and open public_html folder (Its a web link, so need only a single click).
Now you can see upload option, click on upload button and locate your php script file and click on right tick, to upload file.
Now its done!!!! Just send the url with IP Grabbing Script file http://cyberopsdemo.comuf.com/ipgrab.php, you can send this link via facebook chat, messenger, email or whatsapp etc. Now whenever victim click on this link, in file manager a text file automatically generate with the name of ip.txt you can check on this file
for example I click on this link so its grab my ip and details.
Important Note:
- Do not click in this link yourself, otherwise your IP is also grab by this script.
- If victim use VPN, then you will never get original IP. For more about VPN, you can visit our post What is VPN
Subscribe us for more latest updates.