|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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..) |
|
#4
|
|||
|
|||
|
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? |
|
#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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > What information can I get about my visitors? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|