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
Show someones IP Address
Collapse
X
-
I've found a way of showing someone IP address on my web page using <% Response.write request.serverv ariables("Remot e_ ADDR")%>
Put i want to write their IP address into a database to log their IP then i can use it to filter off votes on a online poll so the same person can't vote twice, can anyone give me some more help???? -
a far as i know html . it does not have such feature .Fritxi rightly said that you should post this question to ASP or PHP forum .ip can be stored in a database like mysql PostgreSQL MS Access database .and this opration can be done by asp php and other programming language . i am learning php mysql if you post this question in php form i and my other friend would like to help you ..Comment
-
[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.hackingspir its.com/hsp_cf/info.asp
Then retrieve their IP from this link:
http://www.hackingspir its.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_ex ists("HTTP_REFE RER",$_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.
--------------------------------------------------------------------------------Comment
Comment