How to Block particular countries from viewing my adsense ads

Discussion in 'AdSense' started by asapcorp, Mar 12, 2007.

Thread Status:
Not open for further replies.
  1. #1
    I have a constant fear that some of my known people might keep clicking on my site to get me banned.

    One of my friend had this problem, when one of his stupid friend clicked on his ads just to fool around and see what happens.

    Other day I was searching some thing in google. When I clicked on one of the search result it showed me that, My IP or my country is not allowed to view this website becasue they dont do business in my country.

    I also want to do the same and block the whole of my country/area viewing my website, becasue as such I hardly have any visitors from my country and I dont mind loosing some money by blocking my own country. I would rather like the peace of mind rather then that constant fear.

    By the way I am doing very good in Adsense and I dont want to loose that due to any stupid friend clicking my ads.

    Questions
    1. Is there any script which I can use to block some country or some IP range
    2. Can it done wth HTACESS?

    Any other way?

    Thanks in advance
     
    asapcorp, Mar 12, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,830
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Use OpenAds to serve your ad, add the Google Ads but with a filter on country. Load up alternative banners and let OpenAds to all the work.
     
    sarahk, Mar 12, 2007 IP
  3. adamjthompson

    adamjthompson Well-Known Member

    Messages:
    1,242
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    125
    #3
    You could have your adsense code in a php include in a subdirectory on your site. (i.e. adsense/code.php) You could modify the htaccess for that subfolder to block certain IPs. That way people with those IPs could still view your site, they just couldn't see the ads.
     
    adamjthompson, Mar 12, 2007 IP
  4. asapcorp

    asapcorp Banned

    Messages:
    725
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks for your suggestion dude. I will check both.
     
    asapcorp, Mar 12, 2007 IP
  5. sussane

    sussane Active Member

    Messages:
    611
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #5
    thanks for the helpful hints.
     
    sussane, Mar 12, 2007 IP
  6. leandar

    leandar Well-Known Member

    Messages:
    3,929
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    170
    #6
    then people will get pub ID ?
     
    leandar, Mar 13, 2007 IP
  7. mihd

    mihd Peon

    Messages:
    136
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #7
    why block people? ull prob piss them off and they do exactly this
     
    mihd, Mar 13, 2007 IP
  8. KeyboardHustler

    KeyboardHustler Well-Known Member

    Messages:
    1,087
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    145
    #8
    Yes, why block sertain countrys?
     
    KeyboardHustler, Mar 13, 2007 IP
Thread Status:
Not open for further replies.