Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post

    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

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    I'm pretty sure it has to do something with the user's IP.
    See this link: http://ip-to-country.webhosting.info/

  • #3
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post
    thanks for that!! i downloaded and put all those IPs in a MySQL table.

  • #4
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts
    there is another link, this one is free, not sure about first one:

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

  • #5
    Regular Coder vw98034's Avatar
    Join Date
    Feb 2004
    Posts
    196
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Are those data current and accurate?

  • #6
    Senior Coder nikos101's Avatar
    Join Date
    Dec 2006
    Location
    London
    Posts
    1,007
    Thanks
    59
    Thanked 10 Times in 10 Posts
    neat stuff


  • #7
    Senior Coder crmpicco's Avatar
    Join Date
    Jan 2005
    Location
    Mauchline, Scotland
    Posts
    1,096
    Thanks
    15
    Thanked 1 Time in 1 Post
    Hi Nikos, where abouts in Scotland are you?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •