Latest Anti Click Bomb Script for Google AdSense (Blogger Guide)

Protect your AdSense account with an anti click bombing script that limits excessive ad clicks, prevents invalid traffic, and helps keep your blog saf
latest anti AdSense click bombing script

install this script to prevent AdSense click bombing on your blog

Hello everyone, in this post I will share a script to prevent AdSense click bombing.

Click bombing is something many AdSense publishers have experienced. If you’ve never encountered it, you probably wouldn’t be searching for an anti click bombing script like this.

I have prepared a demo page using image clicks for safe testing. It is not recommended to test this directly on your main blog.

If you want to try it, please follow the steps below.

Latest Anti Click Bombing Script (2026)

Go to Blogger > Theme > Edit HTML, then copy the CSS below and place it above the code ]]></b:skin> or above </style>.

.disabled{pointer-events:none}.hidden{display:none}

Next, place the script below above </body> or &lt;!--</body>--&gt;&lt;/body&gt;.

Note! The highlighted parts can be adjusted according to your needs.
<script>//<![CDATA[
/* anti bom click source:https://www.technopraveen.com */
/* jquery is required */
var aksiAds = "disabled"; // disabled: ads will still appear but cannot be clicked. Change to (hidden) if you want to hide the ads.
var maxClick = 3; // maximum number of clicks
function ASSetCookie(a,b,c){var d=new Date;d.setDate(d.getDate()+c);var e=escape(b)+(0==c?";path=/":"; expires="+d.toUTCString())+";path=/";document.cookie=a+"="+e}function ASGetCookie(a){var b,c,d,e=document.cookie.split(";");for(b=0;b<e.length;b++)if(c=e[b].substr(0,e[b].indexOf("=")),d=e[b].substr(e[b].indexOf("=")+1),c=c.replace(/^\s+|\s+$/g,""),c==a)return unescape(d)}function ASSetCookieAds(a,b){var c=ASGetCookie(a);void 0!=c&&""!=c?(ASTheCookieInt=parseInt(c)+1,ASSetCookie(a,ASTheCookieInt.toString(),0)):ASSetCookie(a,"1",b)}function ASMaxClick(a,b){var c=ASGetCookie(a);return void 0!=c&&parseInt(c)>=b?!0:!1}jQuery(document).ready(function(a){var b="adsbygoogle",c=7,d=maxClick,e=".adsbygoogle",f=!1;ASMaxClick(b,d)&&a(e).addClass(aksiAds).click(false),a(e).bind("mouseover",function(){f=!0}).bind("mouseout",function(){f=!1}),a(window).on("beforeunload",function(){f&&(ASMaxClick(b,d)?a(e).addClass(aksiAds).click(false):ASSetCookieAds(b,c))})});
//]]>
</script>

Update: Set Cookie Expiration

In the script above, cookies are temporary. When a user closes the browser and revisits your site, ads can be clicked again.

The updated script below allows you to set cookie expiration from 1 to 24 hours. Even if users close the browser and return, ads will remain unclickable until the cookie expires.

<script>//<![CDATA[
/* anti bom click source:https://www.technopraveen.com */
/* jquery is required */
var aksiAds = "disabled"; // disabled: ads will still appear but cannot be clicked. Change to (hidden) if you want to hide the ads.
var maxClick = 3; // maximum number of clicks
var adsCookieEx = 1; // cookie expired 1 jam bisa di ubah 1 - 24

function ASSetCookie(a,b,c){if (c){var d = new Date();d.setTime(d.getTime() + adsCookieEx * 3600 * 1000);var e = ";expires=" + d.toGMTString()}else{var e = ""}document.cookie = a + "=" + b + e + ";path=/"}function ASGetCookie(a){var b,c,d,e = document.cookie.split(";");for (b = 0;b < e.length;b++) if (c = e[b].substr(0,e[b].indexOf("=")),d = e[b].substr(e[b].indexOf("=") + 1),c = c.replace(/^\s+|\s+$/g,""),c == a) return unescape(d)}function ASSetCookieAds(a,b){var c = ASGetCookie(a);void 0 != c && "" != c ? (ASTheCookieInt = parseInt(c) + 1,ASSetCookie(a,ASTheCookieInt.toString(),0)):ASSetCookie(a,"1",b)}function ASMaxClick(a,b){var c = ASGetCookie(a);return void 0 != c && parseInt(c) >= b ? !0:!1}jQuery(document).ready(function(a){var b = "adsbygoogle",c = 7,d = maxClick,e = ".adsbygoogle",f = !1;ASMaxClick(b,d) && a(e).addClass(aksiAds).click(false),a(e).bind("mouseover",function(){f = !0}).bind("mouseout",function(){f = !1}),a(window).on("beforeunload",function(){f && (ASMaxClick(b,d) ? a(e).addClass(aksiAds).click(false):ASSetCookieAds(b,c))})});
//]]>
</script>

Make sure your template already includes jQuery. If not, copy the script below and place it above </head> or &lt;!--</head>--&gt;&lt;/head&gt;.

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Safe Testing Method

I know many of you may be unsure whether this script actually works. Below is a safe testing method.

First, create a new page and paste the HTML code below. Save the page, open it, and click the image until it becomes unclickable. After that, try clicking AdSense ads on your blog.


<ins class="adsbygoogle">
  <a href="https://google.com">
    <img alt="test click"
         src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjOlYqKrYEj1Q1EYC9T_IHvp2t2c2jr6CGhBCHhkWdtzhhPhH8tIfsZnKH8KM43hr8yMMb7pX81BVMDSA7Khotc28a4yzMEVqUkO-EUtl_MnNywzq8m40PfVuEnKyda_zF91ZlFRX0wjDs/s320/IMG_20211002_165846.jpg" />
  </a>
</ins>

That’s all for this guide on the latest anti AdSense click bombing script . Hopefully it’s useful, and thank you for visiting.

Post a Comment