...

View Full Version : get user's geographical location and redirect



crmpicco
11-04-2007, 05:23 PM
I remember looking into this a few years ago, but never really found a solution......not sure if there is a way to do it now????

Basically I have a website that is in English and German. Is there a way to determine where the user has accessed the site from then redirect to a different URL - possibly with JavaScript or something?

I.E. I'd like to redirect to "..../de/index.php" if the user is from Germany.

Not sure if this can be accessed through browser settings? Or IP address?

Merci beaucoup.

Picco
:thumbsup:

BarrMan
11-04-2007, 05:40 PM
I'm pretty sure it has to do something with the user's IP.
See this link: http://ip-to-country.webhosting.info/

crmpicco
12-08-2007, 12:28 AM
thanks for that!! i downloaded and put all those IPs in a MySQL table.

BubikolRamios
12-08-2007, 07:49 PM
there is another link, this one is free, not sure about first one:

http://software77.net/geoip-software.htm

vw98034
12-08-2007, 08:16 PM
Are those data current and accurate?

nikos101
12-09-2007, 08:04 AM
neat stuff

crmpicco
12-09-2007, 01:25 PM
Hi Nikos, where abouts in Scotland are you?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum