Jump to content

get domain they are viewing the website from


djanim8

Recommended Posts

samspade is just one of many free web tools that allow reverse DDNS look ups for free, geoIP is a package that does a process in php, but a subscription fee applies.  You will need to do a file_Get_contents of the samespade result or some other Reverese ddns

Here's what I use  (it works most of the time):

<?php
	if ($_SERVER["HTTP_X_FORWARDED_FOR"] != ""){
        		$IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
        		$proxy = $_SERVER["REMOTE_ADDR"];
        		$host = @gethostbyaddr($_SERVER["HTTP_X_FORWARDED_FOR"]);
	}else{
        		$IP = $_SERVER["REMOTE_ADDR"];
        		$host = @gethostbyaddr($_SERVER["REMOTE_ADDR"]);
	}
echo "Remote host is $host<br>";
?>

 

Ken

ok I've checked out samspade.org and I get tons of info when I actually type in an IP.. but when I put a link in the code to try to strip apart the code and get the domain, it says this:

 

That information isn't in the cache

 

For example, tried getting it with this: http://samspade.org/whois/74.6.25.34

 

is there another link that would display in the data so I can read it? like http://samspade.org/whois/?ip=

 

or something?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.