How can i hide a banner from a specific country visitors?

Discussion in 'HTML & Website Design' started by sherytiger, Aug 20, 2007.

  1. #1
    Hello,
    I want to put a banner in my website, But i donot wish to show it to a specific country.
    Is there any coding that may help me out?

    Best Regards,
     
    sherytiger, Aug 20, 2007 IP
  2. itssangy

    itssangy Peon

    Messages:
    135
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    http://vincent.delau.net/php/geoip.html

    Take a look at that. Lets you import the Maxmind free country cvs into a mysql database. It has sample code at the bottom to query a country based on IP. You can then find out where the user's from by looking up the IP address.

    Hope that helps
     
    itssangy, Aug 20, 2007 IP
  3. sherytiger

    sherytiger Active Member

    Messages:
    1,506
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Well really thanks a lot for replying me, But it's very complicated for me, Any other tool that can directly hide the banner from a specific country which i'll assign?
     
    sherytiger, Aug 20, 2007 IP
  4. itssangy

    itssangy Peon

    Messages:
    135
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Not i can think of, sorry
     
    itssangy, Aug 20, 2007 IP
  5. sherytiger

    sherytiger Active Member

    Messages:
    1,506
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Allright, I'll try to search it on Google now!
     
    sherytiger, Aug 20, 2007 IP
  6. anselmo

    anselmo Guest

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    try pear geoip.
     
    anselmo, Aug 20, 2007 IP
  7. ablaye

    ablaye Well-Known Member

    Messages:
    4,024
    Likes Received:
    97
    Best Answers:
    0
    Trophy Points:
    150
    #7
    Try downloading and installing OpenAds at http://www.openads.org/
    It is an ad management script and you can add an IP database there in order to do geotargeting.
    If you need help, there are freelance programmers that can help you with installing and running the script.
     
    ablaye, Aug 20, 2007 IP