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

Any Good Geo targeting Pop up plugin

Discussion in 'Black Hat SEO Tools' started by cybermeid, Mar 15, 2011.

  1. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    I want a popup plugin like WP super popup which will pop up when someone visits only from certain country and I want it to be disabled for all other countries which I dont want them to see the subscribe button.
    Thanks
     
  2. cybermeid

    cybermeid Regular Member

    Joined:
    May 22, 2010
    Messages:
    355
    Likes Received:
    29
    Hello anybody there?
     
  3. f0rked

    f0rked Registered Member

    Joined:
    Jan 25, 2009
    Messages:
    71
    Likes Received:
    64
    Take a look at maxmind's API. It's not a plugin, but you can place where you'd need it to be called from.
    Code:
    http://www.maxmind.com/app/php
    once you place the required files on the server you'd make a call like this:
    PHP:
    include('geoip.inc');
    $gi geoip_open('GeoIP.dat');
    $country geoip_country_code_by_addr($gi$_SERVER['REMOTE_ADDR']);
    if(
    $county == 'US'){
    echo 
    "<code for button>";
    }elseif(
    $country == 'UK'){
    echo 
    "something else for the UK";
    }else{
    echo 
    "something else for everyone else";
    }