Forum Moderators: open

Message Too Old, No Replies

detect website visitor location

         

hermes

7:47 pm on Dec 22, 2004 (gmt 0)

10+ Year Member



Hi guys - I am new to this forum.

I want to find out the location of my website visitors.

I know that there are various ways of doing this (e.g IP to geography look up) but I wonder whether anyone can help me with this avenue. I want to, from my website, actually look to see the Configurable Location or Geographic ID of visitor's windows operating system.

This Location or Geographic ID setting is in the Configurable Language and Cultural Settings, in the control panel of the Windows operating system.

Location or Geographic ID
Geographic ID - Defines the country or location where the user resides.

[microsoft.com...]

"This variable is available in Windows XP (and was also available in Microsoft Windows Millennium Edition [Windows Me] though not in Windows 2000) to define the country or location where the user lives. Each user can change this variable on the fly by selecting changes from the Regional Options tab of the Regional And Language Options property sheet. Any changes made are also applied on the fly. By selecting a particular location, the user has set a variable that a Web service(such as one that deals with weather) can check, thus allowing the Web service to deliver information and services specific to the region or country the user has selected."

Microsoft do seem to have some code on the website for detecting location:

[msdn.microsoft.com...]

But not sure what language this is or how it can be used. Can it be used by a website?

I have posted in this forum because I suspect that the way (and perhaps the only way) to gain access to this information from a website is to deploy .net on the web server. Am I on the right track? Would be better for me if I can use PHP.

Would be really great if someone could help out. Many thanks.

P.S For people who may be interested to see more information on the Configurable Language and Cultural Settings of Windows operating systems:

[microsoft.com...]

irishaff

3:05 am on Dec 23, 2004 (gmt 0)

10+ Year Member



Hi,

Is this with a view to redirection based on location or for another reason?

tomasz

2:15 pm on Dec 23, 2004 (gmt 0)

10+ Year Member



If you are just looking for country based on visitor IP, you can get free GEO database at maxwind.com. They also have some code samples there too, but if you need more than country, like city,ISP etc than you have to pay.
[maxmind.com...]