|
Shows the IP address that a website originates from.
if(trim(@$_REQUEST['q'])) { $q = $_REQUEST['q']; if(preg_match("#\\d+\\.\\d+.\\.\\d+.\\.\\d+.#",$q)) { $res = gethostbyaddr($q); } else { $res = gethostbyname($q); } echo " The Host/IP Address you provided resolves to: ";
echo "$res ";
}
?>
|
|