PDA

View Full Version : Capture URL Visit Results


JoeP
07-04-2003, 06:02 PM
On one of my ASP pages I like to track visitors by IPS addresses. I send myself a CDONTS email in the background that provides me an assorment of Server Variables. In Addition I include this line in the message:


"<A href=""http://netgeo.caida.org/perl/netgeo.cgi?target=" & Request.ServerVariables("REMOTE_HOST") & """>Check NetGeo ISP</A>"


Which provides me a link in the received email, that when I visit the site, netgeo provides interesting data about the IPS such as Country, State Latitude and Longitude etc.

If You visit here and submit your ISP you will see data provided:

http://netgeo.caida.org/perl/netgeo.cgi?

My request for assistance is whether I can capture the returned page info from netgeo in text or somehow, that I can parse and manipulate against a database. I would like to capture the state city and country etc., somehow and display a personal message.

TIA For any ideas or suggestions.

raf
07-05-2003, 10:31 AM
Hmm. I suppose it can be done, but it's bad practice. And they were a few hundred miles of on my IP.

I'd suggest using a more legit methode. Visit http://www.geobytes.com/GeoPhrase.htm
They let you do this lookup for free, and the country and state is returned, and you can display it with a simple line of javascript
(and it's accurate to about 20 miles for my IP)
To check it against a db, you'd need to get the variabels values and run a select with them.
These variabels are sent in the HTTP_Header so it's no problem to get them out with
<% City=Request.ServerVariables(“HTTP_GEOBYTESCITY”) %>
and then you can do whatever you like with it.

JoeP
07-05-2003, 03:13 PM
Thank You! I am aware of Geo I use them on my Page in the link on My Sig.

I don't want to do anything illigit, just thought maybe I could capture the data Neo were providing and use for my members data. I will play with your suggestions about the server variables from geo. Geo definitely defines the ISP a lot better geographically.