ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP 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 November 19th, 2003, 07:26 PM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 995 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 12 h 44 m 11 sec
Reputation Power: 76
What information can I get about my visitors?

Hi,

I would like to log as much information about my visitors as possible using ASP. In addition to the IP addy, what else can I get from the user? Some things I would like to log are the ISP, server address, browser info, etc.

thanks.

Reply With Quote
  #2  
Old November 19th, 2003, 07:32 PM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 995 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 12 h 44 m 11 sec
Reputation Power: 76
Found some answers about ServerVariables @ http://www.4guysfromrolla.com/webtech/092298-3.shtml

The information I can get from visitors - are they all in Request.ServerVariables() object?

Last edited by vb.net : November 19th, 2003 at 07:50 PM.

Reply With Quote
  #3  
Old November 20th, 2003, 12:41 AM
unclefu unclefu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 120 unclefu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 57 sec
Reputation Power: 5
yes, but to my recollection there's no server variable you can request that returns the OS itself and information such as that.

in order to get that information you'll need to get the http header using request.serverVariables("HTTP_USER_AGENT")

from there you can use InStr() to determine the placement of seperating commas and then use Mid() in order to extract the information between the commas (such as OS, Browser, etc..)

Reply With Quote
  #4  
Old November 20th, 2003, 10:24 AM
vb.net vb.net is offline
Demonic Swordsman DGQB
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Posts: 995 vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level)vb.net User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 12 h 44 m 11 sec
Reputation Power: 76
I've seen some sites that give the country/latitude & longitude of the IP address. Can this be achieved in ASP?

One piece of info I am definitely interested in is the Domain name. This ASP page seems to be able to capture it: http://www.whatismyipaddress.com/reverse.asp What is the code to grab this info?

Reply With Quote
  #5  
Old November 20th, 2003, 10:30 AM
unclefu unclefu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 120 unclefu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 57 sec
Reputation Power: 5
you're able to use the ServerVariables collection to get their IP address - that's where you're gonna have to start.

once you've got that (i think it's REMOTE_ADDR in the collection) then you'll have to perform a reverse dns lookup on the IP. And as far as getting latitude, longitude, country, etc... I'm pretty sure the way that works is some sort of large database that correlates an IP addresses network # against a big list of all the companies and ISPs which own those networks -- not something asp is gonna be able to do.

As for your reverse dns problem I found this page . The solution presented on the site SHOULD work - it uses the Shell object to actually run the nslookup.exe tool to pipe the results to a txt file then the script reads the txt file in and returns the data from inside.

If you want to find that as well as other pages then just google "asp reverse dns"

-- justin

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > What information can I get about my visitors?


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 1 hosted by Hostway