SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2006
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirecting Based On Geographical Location

    Morning all,

    Does anyone know how I can use PHP (or anything else, for that matter) to redirect users to a different website based on their geographical location?

    So for example, if someone in the UK visits www.example.com, it should redirect them to www.example.co.uk, whereas if someone in Germany visits www.example.com, it will redirect them to www.example.de.

    Any ideas? I know I could put a region selector on the .com site, and have the user select their country manually, but for some people that's too much like hard work, so I wanted something automated.

    Thanks.


  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did a quick search and found this:
    http://software77.net/cgi-bin/ip-country/geo-ip.pl
    Seems quite complete.

    There's also this: http://www.analysespider.com/geo-tar...targeting.html

    The free version should be good enough for you since it seems you only need to target the "major" countries.

  3. #3
    SitePoint Member
    Join Date
    Jan 2006
    Location
    UK
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's great, thanks a lot for your help.



Bookmarks

Posting Permissions

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