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

Need geo redirect code

Discussion in 'HTML & JavaScript' started by Sooted, Oct 23, 2016.

  1. Sooted

    Sooted Junior Member

    Joined:
    Sep 5, 2010
    Messages:
    139
    Likes Received:
    5
    I want to keep the whole world on the current page but i want to redirect UK and US visitors to a new page

    how i do that in basic HTML?
     
  2. tasburrfoot

    tasburrfoot Regular Member

    Joined:
    Dec 16, 2008
    Messages:
    323
    Likes Received:
    152
  3. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,713
    Likes Received:
    2,638
    Occupation:
    blog creator
    Location:
    UK
    found this, but it may take some reading, so it may or may not be what you are looking for. Worth a look though.
    https://geolify.com/geo-targeting-script/
     
  4. Sooted

    Sooted Junior Member

    Joined:
    Sep 5, 2010
    Messages:
    139
    Likes Received:
    5
    already checked that out but they have 5 second delay watermark :/

    with basic html i mean javascript too but i tried alot javascript codes and nothing worked on self test :(
     
  5. astrodream

    astrodream Newbie

    Joined:
    Sep 5, 2016
    Messages:
    7
    Likes Received:
    0
    Try to use MaxMind via js. I can't add link. sorry. use google "geoip2 javascript"