Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Capruring IP and remote host into database.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

klubdj
Junior Member

United Kingdom
152 Posts

Posted - 10 May 2002 :  10:32:18  Show Profile  Visit klubdj's Homepage
Hi,

I need some help trying to caprure IP addresses and Remote host addresses into my database! For people registering and logging on to site and message board.

I think I have the code correct as I can see the IP and remote host if I put out to a page however when trying to put into a database table it just simply doesn't work!!!

I am using .asp and SQL 2000 database.

Please help and thanks,


Sarah xx

www.klubdj.co.uk

Doug G
Support Moderator

USA
6493 Posts

Posted - 10 May 2002 :  19:21:47  Show Profile
In asp use Request.ServerVariables("HTTP_REFERER") for the url, and Request.ServerVariables("REMOTE_ADDR") for the IP. This works in most cases, although some proxy servers will cause incorrect results.


======
Doug G
======
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 10 May 2002 :  20:43:55  Show Profile  Visit Gremlin's Homepage
You realise klubdj that Snitz does already capture the IP address of people and place it in the database dont you ?

www.daoc-halo.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07