SunQuest
 
           JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old February 7th, 2004, 07:21 AM
ocean ocean is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 18 ocean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ip log for security purposes???

How can I log someones IP using Javascript......you see I have a sub forum provided by Proboards. recently lots of these forums have been hacked. I thought that if onload of each page of the forum if the user was admin, which is me, and if the ip was the one that I embedd in the code or my own detected, than the user, who is me, can proceed as the admin, otherwise the window will just keep on closing....I like the idea but Im not sure if its possible since I dont know how to log the users ip and keep in the cookie...can anyone help plz

Reply With Quote
  #2  
Old February 7th, 2004, 08:39 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Javascript is for the CLIENT SIDE. That is, it has nothing to do with the server. You need a server-side langauge to properly accomplish your task. PHP, ASP, etc are what you are after. When a user requests a page, they send a bunch of information about themselves, such as: the browser they're using, their IP address, the OS, etc. You can grab that IP address very simply using a server-side language, and store it in a DB. There would be no point storing a user IP as a cookie on their machine. Also, using JS as a security measure is not feasible, as all you need to do to get around it is turn it off.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Ip log for security purposes???


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway