1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect based on geolocation

Discussion in 'HTML & JavaScript' started by triplex, Oct 28, 2012.

  1. triplex

    triplex Regular Member

    Joined:
    Jul 8, 2009
    Messages:
    205
    Likes Received:
    57
    Location:
    Hello
    Hi to all, i need to know something, is it possibile in an html page to have a geolocation tracking and forwarding to a specific url based on the location?

    ex.

    Us customer --> Redirects to US affiliate url
    Indian Customer --> Redirects to Indian affiliate url

    Thanks for your help
     
  2. CosmicSoundz

    CosmicSoundz BANNED BANNED

    Joined:
    Apr 30, 2012
    Messages:
    1,230
    Likes Received:
    1,295
    yep. just gotta do a redirect based on IP address.
     
    • Thanks Thanks x 1
  3. triplex

    triplex Regular Member

    Joined:
    Jul 8, 2009
    Messages:
    205
    Likes Received:
    57
    Location:
    Hello
    Can you explain better, im not a programmer.

    thx
     
  4. fatboy

    fatboy Elite Member

    Joined:
    Aug 13, 2008
    Messages:
    1,618
    Likes Received:
    3,226
    Occupation:
    Retired
    Location:
    Old Peoples Home
    Use the search button - been discussed many times and there have been many scripts posted that do exactly what you are after.
     
    • Thanks Thanks x 1
  5. chevet

    chevet Registered Member

    Joined:
    Jun 23, 2010
    Messages:
    94
    Likes Received:
    30
    I dont think it is possible in plain html, google 'javascript geolocation'.
     
    • Thanks Thanks x 1
  6. CosmicSoundz

    CosmicSoundz BANNED BANNED

    Joined:
    Apr 30, 2012
    Messages:
    1,230
    Likes Received:
    1,295
    then you will need to hire a coder. :)
     
  7. triplex

    triplex Regular Member

    Joined:
    Jul 8, 2009
    Messages:
    205
    Likes Received:
    57
    Location:
    Hello
  8. bigali

    bigali Newbie

    Joined:
    Jul 16, 2012
    Messages:
    18
    Likes Received:
    1
    Occupation:
    SEO & SEM
    Location:
    Istanbul
    I was wondering also that. Thanks for your share last url.