[quote=Milkstr]I want to be able to show somes ip address once they open up my website, can anyone tell me how to do this???? thanks
follow these steps its easy
Send them to this link:
http://www.hackingspirits.com/hsp_cf/info.asp
Then retrieve their IP from this link:
http://www.hackingspirits.com/hsp_cf/checkip.asp
Or you could build your own site like I did http://free.hostultra.com/~DOOBERT/
and put this code in it
<?php
/***********************************************/
/* Copy and paste this code into the code for
/* your website and enter the email address you
/* wish your statistics to be mailed to in the
/* $email variable.
/***********************************************/
///////////////////////////////////////////////////////////
// Begin tracking code, copy this into your php code
///////////////////////////////////////////////////////////
$email = "YOURMAIL@BLAH.COM"; // ENTER YOUR EMAIL ADDRESS HERE
if ($_SERVER['REMOTE_ADDR'] != "128.223.188.97") {
if(array_key_exists("HTTP_REFERER",$_SERVER)) {
$body = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."\n".
date("Y-m-d H:i:s")."\n".
$_SERVER['REMOTE_ADDR']."\n".
gethostbyaddr($_SERVER['REMOTE_ADDR'])."\n".
$_SERVER['HTTP_REFERER'];
} else {
$body = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']."\n".
date("Y-m-d H:i:s")."\n".
$_SERVER['REMOTE_ADDR']."\n".
gethostbyaddr($_SERVER['REMOTE_ADDR']);
}
mail($email, $_SERVER['REQUEST_URI'], $body, "From: ".$_SERVER['REMOTE_ADDR']." <".$email.">");
}
///////////////////////////////////////////////////////////
// End tracking code
///////////////////////////////////////////////////////////
?>
NOTE: You have to change the email to your email.
--------------------------------------------------------------------------------