Suggest WP plugins for blocking specific user/IP/country from clicking Adsense Ads ?

Discussion in 'WordPress' started by Google Services, Dec 19, 2012.

  1. #1
    Hi Guys,

    Could anyone here suggest me some best WordPress plugins to prevent clicking my AdSense Ads from a specific user / country / IP ?

    GS
     
    Google Services, Dec 19, 2012 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #2
    You cannot prevent them from clicking, you can only hide the ad.

    I don't know any plugin but if you put a simple conditional in your theme it should basically do what you want.

    Pseudocode:
    
    if($ip_address != "1.2.3.4"){
    //show the ad to everyone
    }
    else{
    //hide the ad if a visitor has this $ip_address
    }
    Code (markup):
     
    Devtard, Dec 19, 2012 IP
  3. chrislim2888

    chrislim2888 Active Member

    Messages:
    46
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Get a free 3rd party IP to country geolocation service, and redirect out the unwanted visitors from a list of countries. It won't be that hard to implement, but a few line codes will do. You can check this site for details, http://www.ipinfodb.com
     
    chrislim2888, Dec 20, 2012 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    You can keep unwanted IP addresses from the site (with .htaccess), but you'd have to write a lot of code to keep people in specific IP ranges from clicking ads.
     
    Rukbat, Dec 21, 2012 IP