whatstheirip provides powerful tools to track IP addresses through various methods including URLs, emails, images, and PDFs
Explore ServicesFind the geographic location of anyone you're interacting with online. This information can be valuable for verification or tracking purposes. Our tools create specialized links that can be shared via social media or messaging to instantly capture IP addresses.
Create a tracking link that logs information when someone visits it. You'll also get a QR code that points to your tracking link.
Track when your emails are opened using an invisible image. Insert this image into your emails to know when they're viewed.
This invisible pixel will track when your email is opened
The source code below shows how email tracking works using PHP to create invisible tracking pixels
<?php
//We can pass in 'Get' variable to make each link unique in order to track accordingly
if(isset($_GET['mail'])){
$key= htmlspecialchars($_GET['mail']);
}
//Below to line's function is to log device inforamtion and their ip address
$agent=$_SERVER['HTTP_USER_AGENT'];
$ip = $_SERVER['REMOTE_ADDR'];
//Option1:we can use a SQL database to log details
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error){
die("Failed: " . $conn->connect_error);
}
//Option2:we can also use a txt file to log data alternatively
$myfile = fopen("feed.txt", "a+") or die("Unable to open file!");
fwrite($myfile, $rich);
fclose($myfile);
//After the log of data, we can use the code from part1 to display image afterward
?>
<?php
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
header('Content-Type: image/jpeg');
imagejpeg($im);
imagedestroy($im);
?>