HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 20th, 2000, 12:21 AM
TimDimman TimDimman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 9 TimDimman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old September 20th, 2000, 01:23 AM
ryanh ryanh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 1999
Posts: 119 ryanh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 41 sec
Reputation Power: 10
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

Reply With Quote
  #3  
Old September 20th, 2000, 09:24 AM
JSchoof JSchoof is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 82 JSchoof User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 23 m 46 sec
Reputation Power: 9

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.

Reply With Quote
  #4  
Old September 20th, 2000, 05:27 PM
TimDimman TimDimman is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 9 TimDimman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Displaying remote IP on web page...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT