Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-04-2007, 05:23 PM   PM User | #1
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
Question get user's geographical location and redirect

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
crmpicco is offline   Reply With Quote
Old 11-04-2007, 05:40 PM   PM User | #2
BarrMan
Senior Coder

 
BarrMan's Avatar
 
Join Date: Feb 2005
Location: Israel.
Posts: 1,644
Thanks: 69
Thanked 83 Times in 82 Posts
BarrMan is on a distinguished road
I'm pretty sure it has to do something with the user's IP.
See this link: http://ip-to-country.webhosting.info/
BarrMan is offline   Reply With Quote
Old 12-08-2007, 12:28 AM   PM User | #3
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
thanks for that!! i downloaded and put all those IPs in a MySQL table.
crmpicco is offline   Reply With Quote
Old 12-08-2007, 07:49 PM   PM User | #4
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
there is another link, this one is free, not sure about first one:

http://software77.net/geoip-software.htm
BubikolRamios is offline   Reply With Quote
Old 12-08-2007, 08:16 PM   PM User | #5
vw98034
Regular Coder

 
vw98034's Avatar
 
Join Date: Feb 2004
Posts: 194
Thanks: 3
Thanked 0 Times in 0 Posts
vw98034 is an unknown quantity at this point
Are those data current and accurate?
vw98034 is offline   Reply With Quote
Old 12-09-2007, 08:04 AM   PM User | #6
nikos101
Senior Coder

 
nikos101's Avatar
 
Join Date: Dec 2006
Location: London
Posts: 1,004
Thanks: 58
Thanked 10 Times in 10 Posts
nikos101 is an unknown quantity at this point
neat stuff
__________________

nikos101 is offline   Reply With Quote
Old 12-09-2007, 01:25 PM   PM User | #7
crmpicco
Senior Coder

 
crmpicco's Avatar
 
Join Date: Jan 2005
Location: Mauchline, Scotland
Posts: 1,091
Thanks: 15
Thanked 1 Time in 1 Post
crmpicco has a little shameless behaviour in the past
Hi Nikos, where abouts in Scotland are you?
crmpicco is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:26 PM.


Advertisement
Log in to turn off these ads.