retrieve zipcode or location of client
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=21327
Printed Date: 29 March 2026 at 4:18pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: retrieve zipcode or location of client
Posted By: Dan H
Subject: retrieve zipcode or location of client
Date Posted: 17 September 2006 at 7:55pm
|
I want to display geographically relevent advertisements on my site. Is there a way to pull a zip code or something from the header?
|
Replies:
Posted By: dpyers
Date Posted: 18 September 2006 at 1:47am
Best you can do is a use a GEOIP data base to map IP addresses from the header. Not particularly accurate though. My IP block maps to my ISP's business office - 2500 miles away. Proxy's tend to mask IP addressess as do some firewalls and browser extensions.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
Posted By: Dan H
Date Posted: 18 September 2006 at 2:12am
|
Very interesting! I'll check it out. Thanks for the quick reply.
|
Posted By: WebWiz-Bruce
Date Posted: 18 September 2006 at 10:54am
I use MaxMinds GeoIP Country on this site to get the country the user is from based on their IP address.
I find it very accurate at getting the correct countries based on the users IP, I've also written a function that can workout the continent the user is from based on their country code. PM me your email address if you would like a copy of this country code to continent code function.
I use it on this site to block certain counties that are hotspots for software pirating, hacking, and fraudulent transactions.
I also use the it with the continent function I have written to display pricing in the purchasing section in a currency more relevant to the user, eg. If you are in Europe it displays in Euros by default.
You can get GeoIP from www.maxmind.com
------------- https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting
|
Posted By: Dan H
Date Posted: 18 September 2006 at 5:39pm
|
I just got a 'test' account with GeoIP, so I can check it out- see if it does what I need. I'll let you know how it goes.
Thanks, Dan.
|
|