473,326 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Show someones IP Address

49
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
Oct 16 '06 #1
7 12208
Milkstr
49
I've found a way of showing someone IP address on my web page using <% Response.write request.servervariables("Remote_ 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????
Oct 18 '06 #2
Fritxi
1
I think that you should ask that on ASP forums, this is for CSS
Oct 24 '06 #3
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 ..
Oct 25 '06 #4

Feb 4 '07 #5
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

Feb 5 '07 #6
AricC
1,892 Expert 1GB
You can do this a number of ways ASP, PHP, some other server language which do you have available? I will move your thread to that forum.

In PHP:
Expand|Select|Wrap|Line Numbers
  1. <?
  2. $Address = $_SERVER['REMOTE_ADDR'];
  3.  
  4. echo "My IP Address Is: $Address";
  5. ?>
  6.  
Feb 5 '07 #7
[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.

--------------------------------------------------------------------------------
Sep 6 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: jeremylim2000 | last post by:
How can i show my microsoft address book email list, and show it as a list in my asp web page - jeremylim200 ----------------------------------------------------------------------- Posted...
9
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
2
by: nikou_70 | last post by:
I have a page with one text box when I search name, return value such as (address, phone...) I show these value in the table but I want to show these in text box that I have in my page. ...
3
by: Dabbler | last post by:
is there a way to show the header even when GridView is empty? the page looks kind of bare with just empydatatext or emptyrowtemplate. Thanks.
8
by: Radx | last post by:
Here in my web application, I have a data entry page with serval controls. Some of the controls have autopostback is set true. But the problem is when two or more people are entering data at the...
4
by: robmarleh | last post by:
Hi, I've been trying to set up a php system to calculate and order and recieve delivery address/s. It's going pretty well so far but I having trouble with one particular part. I've been trying...
4
by: Ken | last post by:
Is there any way to show current webpage in Label or textbox? for example, if the page address I browse currently is http://localhost/try/default.aspx then I want to show the information about...
1
by: mimirocs | last post by:
I would like to get a software that can make me find someones password by putting the persons username.
2
by: llScrubll | last post by:
I need to get the code to show the address with spaces when being typed in. can someone please help me? this is the code: #include <cstdlib> #include <iostream> using namespace std; int...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.