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

I'm looking for a geo targeted mobile php redirect script

Discussion in 'General Scripting Chat' started by elviswong, Dec 2, 2012.

  1. elviswong

    elviswong Senior Member Premium Member

    Joined:
    Nov 8, 2011
    Messages:
    918
    Likes Received:
    240
    Guys

    I'm looking for a geo targeted mobile php redirect script
    If it could also take care of OS version, it would be awesome !


    Thanks
     
  2. RottenYellow

    RottenYellow BANNED BANNED

    Joined:
    Sep 10, 2010
    Messages:
    68
    Likes Received:
    16
    That's very simple.

    1. Download IP geo database, I believe you can find some here: http://www.maxmind.com/en/geolocation_landing if you're using PHP just check $_SERVER['REMOTE_ADDR'] against the database to get the country.

    2. Extract OS from $_SERVER['USER_AGENT'] (if the OS is present)

    Hope that helps