[HELP] Block countries script on Blogspot

Discussion in 'AdSense' started by andayuna, Dec 26, 2009.

  1. #1
    I you happened to know how to block adsense showing to visitor from certain countries, please let me know. Or there is another solution to avoid smart pricing policies or click fraud
     
    andayuna, Dec 26, 2009 IP
  2. Lex350

    Lex350 Notable Member

    Messages:
    1,889
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    215
    #2
    You can block countries from your website by IP address but I'm not sure if you can block ads alone. Anyone?
     
    Lex350, Dec 26, 2009 IP
  3. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #3
    On blogspot it's difficult.
    You can do it with htaccess and PHP, but on blogspot you can only use javascript.
    Find the list of IPs at http://www.blockacountry.com
    You could add those IPs in a big javascript array and then decide to redirect to another site if the visitor uses an IP from one of the countries listed. But the Array is going to be huge, not very good for other people.
     
    JamesColin, Dec 26, 2009 IP
  4. andayuna

    andayuna Member

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Please tell me how to built that JavaScript array, i'll add the country code myself. this is a serious problem for me. this click fraud has to stop someway
     
    andayuna, Dec 26, 2009 IP