Database of Ip addresses by country

jbajaj
jbajaj used Ask the Experts™
on
Hello

I have two versions of the same portal running i.e abc.com and xyz.com

I want to know the country of access of the user and redirect him to the appropriate portal

Can you please let me know where I could get the database showing the mapping of country to IP address

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I am basically looking for a free database

Also I just need to differentiate between India and overseas users....

thanks
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
On this page http://www.maxmind.com/app/geolitecountry are links to the database and the API to use it.
Top Expert 2011
Commented:
- there are many such data exist in csv format if you googling around. however i find that Software77 provide a fixed link that you can schedule for automated download daily or weekly if necessary. they also provide 1pv4 and ipv6 ip addresses. you can then write a script to load the csv file or simply use import feature of your database (if available):

http://software77.net/geo-ip/
read the faq page on auto-download policy: http://software77.net/faq.html#automated

- i'm also sharing you the link to the .net code on how to read such ip number in csv data and convert it into ip address:
http://www.codeproject.com/KB/aspnet/aspxcode_net.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial