Protect Adsense against bomb clickers with this code?

Discussion in 'AdSense' started by lapidus, Apr 13, 2011.

  1. #1
    Ok i have one code which can protect (for now) only Adsense 728x90. Code is not tested yet.

    NOTE: This code is create a cookie if some one click on Google ads. Track the click Not at ADS if you did not use div with on click function then your ads can't be prevent from bomb click.


    <div id="banners" onclick="trackclick();">

    <script language="JavaScript">

    if ( clickCount > 2 ){
    document.write('
    <a href="Your Hyper Link">
    <img src="Your Banner Link 728 x 90 px">
    </a>
    ');
    }else{
    document.write('
    <script type="text/javascript"><!--
    google_ad_client = "pub-your publisher ID";
    /* C4G-Forum-728x90, created 5/9/08 */
    google_ad_slot = "number";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    ');
    }

    </script>
    </div>


    <script language="JavaScript">

    var clickCount = readCookie();
    if ( clickCount == null ){
    clickCount = 0;
    }

    function trackclick() {
    clickCount = parseInt(clickCount)+1;
    setCookie( clickCount, 2 );
    return true;
    }

    function setCookie( cookieValue, nDays) {
    var today = new Date();
    var expire = new Date();
    if (nDays==null || nDays==0) nDays=1;
    expire.setTime(today.getTime() + 3600000*24*nDays);
    document.cookie = "clicktrack="+escape(cookieValue)
    + ";expires="+expire.toGMTString();
    }

    function readCookie() {
    var nameEQ = "clicktrack=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
    var c = ca;
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0){
    return c.substring(nameEQ.length,c.length);
    }
    }
    return null;
    }

    </script>


    Ok folks as you can see this ad is for cookie.
    If somebody can post here some CODE against multiple clicks to block that IP or maybe one visitor can click only one TIME on one AD.

    P.S. This is a good community, and everybody want to have their ads not banned from Google
     
    lapidus, Apr 13, 2011 IP
  2. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #2
    PS. if you use this code you will be banned from adsense.
     
    Laceygirl, Apr 13, 2011 IP
  3. 1812

    1812 Active Member

    Messages:
    1,101
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    80
    #3
    Advice worth repeating to anyone thinking of doing this!
     
    1812, Apr 13, 2011 IP
  4. tiddles

    tiddles Active Member

    Messages:
    235
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
     
    tiddles, Apr 13, 2011 IP
  5. ehsan121

    ehsan121 Active Member

    Messages:
    605
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    58
    #5
    hahaha Lacy is right
     
    ehsan121, Apr 13, 2011 IP
  6. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #6
    What Google have with this code? Laceygirl you can't be banned becasue of this code. Why you think that?
     
    lapidus, Apr 13, 2011 IP
  7. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #7
    Because its against the TOS to screw around with the adsense ads functions.
     
    Laceygirl, Apr 13, 2011 IP
  8. tiddles

    tiddles Active Member

    Messages:
    235
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #8

    Does anybody ever read Google's Terms of Service ??
     
    tiddles, Apr 13, 2011 IP
  9. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #9
    Not the 3000 people a day that get banned with adsense.

    If you don't believe me then why don't you try it on one of your sites?
     
    Laceygirl, Apr 13, 2011 IP
  10. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #10
    Laceygirl Google will not know if you have this code in some of folder in your site. OMG Ofcourse you will not implement this code in AD place ,because will not work. lol
     
    lapidus, Apr 13, 2011 IP
  11. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #11
    AdSense code may not be altered, nor may the standard behavior, targeting or delivery of ads be manipulated in any way that is not explicitly permitted by Google. For instance, clicking Google ads may not result in a new browser window being launched.
    Code (markup):
    https://www.google.com/adsense/support/bin/answer.py?answer=48182&gsessionid=2l6hCgs3O7sW7FDRj6lfLw

    There you go.

    Sometimes I think google knows if I'm in the bathroom of my house. They will see the file as the spider with catch it. You can't trick adsense.
     
    Laceygirl, Apr 13, 2011 IP
  12. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #12
    I don't wanna trick Google, lol i just want to protect my ads from Click bombers. And if spider catch it that is a other story but Google will see that you want protect Google ads (what is bad in that?)
    And i was ask if somebody have other alternative way to protect ads from bomb clickers.
     
    Last edited: Apr 13, 2011
    lapidus, Apr 13, 2011 IP
  13. 1812

    1812 Active Member

    Messages:
    1,101
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    80
    #13
    Bomb Clickers? or Click Bombers?
     
    1812, Apr 13, 2011 IP
  14. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #14
    Hehehe yeahh Click Bombers ;)
     
    lapidus, Apr 13, 2011 IP
  15. fancymouj

    fancymouj Peon

    Messages:
    5,019
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Bomber man . .. lol
     
    fancymouj, Apr 13, 2011 IP
  16. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #16
    I already told you to not worry about it. If you get click bombed then adsense will automatically count them as invalid. Now if it happens a bunch of times then worry. You are being paranoid just like me 2years ago.
     
    Laceygirl, Apr 13, 2011 IP
  17. lapidus

    lapidus Well-Known Member

    Messages:
    396
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #17
    Oh thank you Laceygirl .This is a news for me, then i not need to be worried about that. Cool
     
    lapidus, Apr 13, 2011 IP
  18. saqib889

    saqib889 Peon

    Messages:
    1,291
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #18
    This tool is really useful for people who have these kind of attacks
     
    saqib889, Apr 13, 2011 IP
  19. Laceygirl

    Laceygirl Notable Member

    Messages:
    4,617
    Likes Received:
    188
    Best Answers:
    1
    Trophy Points:
    250
    #19
    No its not!!!! I said. It will get you banned!! BANNED.

    I've been with adsense for years and have gotten around 150,000total clicks since the beginning. Don't worry about click bombers.
     
    Laceygirl, Apr 13, 2011 IP
  20. tiddles

    tiddles Active Member

    Messages:
    235
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #20

    I am a believer Laceygirl, that is why I said "Does anybody ever read Google's TOS":)
     
    tiddles, Apr 13, 2011 IP