IP based content delivery

Discussion in 'PHP' started by mark7144, Jun 13, 2008.

  1. #1
    I want a link on my website to only show for visitors from the United Kingdom and then for the rest of the world I want a different link to show.

    Does anyone know how this can be done?
     
    mark7144, Jun 13, 2008 IP
  2. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #2
    You will need an IP o country resolving database. This can be found on two sites:
    1. commercial (but accurate) at www.ip2location.com
    2. free at www.webhosting.info

    You will find examples of how to use the databases in PHP at both sites.
     
    Lordo, Jun 13, 2008 IP
  3. mark7144

    mark7144 Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you :)
     
    mark7144, Jun 13, 2008 IP