Hi,
I am working on user log management. for this i want to log user region setting, from which region/country user is accessing my website.
i can get user IP, pls how do i map/get country fromm that IP. or is there any way to achieve this.
thx
Printable View
Hi,
I am working on user log management. for this i want to log user region setting, from which region/country user is accessing my website.
i can get user IP, pls how do i map/get country fromm that IP. or is there any way to achieve this.
thx
There is no way to achieve using .NET itself. I know a database that is used by some big companies, and our companie uses this database also since shortly.
Take a look an www.maxmind.com. There are some free versions (but less accurate) and some paid version. Take a look at it and see if it fits your needs.
For DBs and services check below link too,
http://www.ip2location.com/free.asp
And here is one Free service, you just supply the IP by suffixing it to the URl and you get a XML of details,
http://freegeoip.appspot.com/xml/121.242.40.15
I tried this URL, it works, but not accurate at all. I provided my IP adress and only the Country was correct. The region and city was about 350KM wrong.
Also this is not accurate. Again only the country was correct.Quote:
Originally Posted by Krishnaa
@imughal: It depends on your needs what you need to choose. If only the country is enough for you, you can use one free version provided by Krishnaa or me. If you really want to have accurate results, I would go for the paid one I suggested.
I find a great resource for things like this is to check out websites like zen cart that often have opensource plugins already developed and available. Check out how they did it then right the same thing in your platform.