Need to redirect visitors from certain country please advice

Discussion in 'Programming' started by yenerich, Feb 5, 2009.

  1. #1
    Hello

    A customer ask me to make that the site i develope for him could redirect users based (if possible) on visitors country. If it takes to much work, maybe i could implement based on language.

    Can anyone point me in the right direction to do it the best possible (that dont eat much resources, per example). It need to br free.

    Thanks in advance

    *Is i use navigator language... could it give a problem with google bot? I dont want to redirect google bot.
     
    yenerich, Feb 5, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    buldozerceto, Feb 5, 2009 IP
  3. yenerich

    yenerich Active Member

    Messages:
    697
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    75
    #3
    yenerich, Feb 5, 2009 IP
  4. darepit

    darepit Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Same problem , Same thanks

    BB
     
    darepit, Feb 8, 2009 IP
  5. darrenbeige

    darrenbeige Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can do this also using GeoIP extension for Apache, and .htaccess modification. It works by 'including' the .dat file, and then using mod_rewrite to redirect:

    For more details: see maxmind.com/app/mod_geoip
     
    darrenbeige, Feb 8, 2009 IP
  6. andrew47

    andrew47 Active Member

    Messages:
    319
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
  7. darrenbeige

    darrenbeige Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Javascript options work, but they could be considered as cloaking by some spiders. In practically every situation of redirection, 301's are much, much better
     
    darrenbeige, Feb 9, 2009 IP
  8. fdoze

    fdoze Peon

    Messages:
    205
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yes. You could use redirection on server too.
     
    fdoze, Feb 9, 2009 IP