Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP Script

Status
Not open for further replies.

Montroze

Technical User
Apr 20, 2001
113
CA
Any suggestions or links for a script(cross-browser)that can get the users IP address and log it into a database with the time, prefer an invisible one.
 
If your server supports SSI:
[COLOR=aa0000]
Code:
document.cookie='<!--#echo var=&quot;REMOTE_ADDR&quot; -->';
[/color]
That will log the user's IP into a cookie on the user's browser.
Code:
- UNIMENT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top