|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm pretty sure this can't be done with straight HTML as the only time I've ever seen it done is with a .shtml file.
I'd like to get my eyes on some code that will allow me to do this. I'm hoping Javascript will allow me to this, as I am somewhat familiar with Javascript. However, if this can be done with either CGI or Perl that will be fine as well. So, I guess my question is...can I use Javascript to display a remote viewer's IP on a web page (for security reasons...more as a threat)? If not, does anyone know what I can use to do this? Thanks. Tim |
|
#2
|
|||
|
|||
|
I don't think it's the answer you want, but I don't think you can do it with javascript. I just checked a couple books I've got here, and didn't see anything on it.
Not to fear, though. Using SSI is easy enough: <!--#echo var="REMOTE_ADDR"--> and, of course, just make sure you name it with a .shtml extention... HTH |
|
#3
|
|||
|
|||
|
Well, the problem is that JavaScript is a client side language. So to the JavaScript, it's not a remote address, but a local address. In any case, I don't think that you can do this in JS. |
|
#4
|
|||
|
|||
|
How can I send an email to myself containing info about a viewer to a specific page?
I run a very small server and one of my pages contains the SSH Java Client and I'd like to recieve an email everytime someone uses the client. I'd like to know their IP as well as other general information (which I can already get) Thanks for all the help! Tim |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Displaying remote IP on web page... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|