IP Adress Locality
Is there a reliable method to determine a locale from an IP address?
I have a registration on a site I am making and there are two locales allowed, EU and US. It is important for the site that people don't choose the wrong one for their correct locale.
And the nature of the site, people WILL INTENTIONALLY choose the wrong one.
Greg K posted this at 16:19 — 30th August 2008.
He has: 2,145 posts
Joined: Nov 2003
Check out some of the offers from this place, which I use to look things up on a one by one basis:
http://www.ip2location.com/130.101.206.49
For just basic country code, they offer a service of $50/year for that. I was looking under their free resources, and their IPv6 to country is free upon requesting, and you can convert ip4 (xxx.xxx.xxx.xxx) over to ipv6.
-Greg
greg posted this at 16:26 — 30th August 2008.
He has: 1,581 posts
Joined: Nov 2005
Hmm, nice link. Although what I want is the code that does that.
I could use their services, but I try to avoid using code that relies on other sites.
What if there is a loss in link between sites, their site is down, data loss etc
It's unlikely to happen if their site is well established, but I don;t like relying on it.
Thanks for the link though, I'll have a good nose round later at the freebies.
Greg K posted this at 17:39 — 30th August 2008.
He has: 2,145 posts
Joined: Nov 2003
Well not depending on anyone would require you to obtain a database that contains the information, and require you do frequent updates of the records.
Check out this for possibility this...
http://lists.arin.net/pipermail/policy/2002-April/000133.html
I'm going to be checking out this list more later as it has my curiosity up...
-Greg
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.