How to Set Up AdSense Invalid Clicks Protector in Blogger

Many publishers complain of  invalid clicks or bomb clicking of  Google AdSense ads on their site. they keep asking: "How can I protector my AdSense account from invalid clicks? How can I add AdSense invalid protection code in Blogger?"

In this article we have provided code and step-by-step guide on how to add AdSense invalid clicks protection in Blogger to protect your account. 

What is Invalid Click?

Clicks on AdSense ads which Google may consider as invalid click include unintentional clicks, clicks using VPN, clicks from malicious software or bot traffic, publisher clicking on his own ads, heaters or competitors bomb clicking on one’s ads etc. 

For an ad click to be valid it must be by real site visitors with genuine intension and must show interest in the by interacting with the ad such as visiting the advertiser’s websites, buying, subscribing to or downloading the products and services being advertised.

We know people like to use VPN to surf the internet, even when the click on your ads with good intention (to patronize the advertised product) their clicks will still be considered as malicious, because no matter what their intensions are, one hiding his identity on the internet is suspicious. 

If one uses a VPN, one’s IP address will be changed but  device’s records like MAC ID, Session ID are stored in one’s local computer, Google can easily track the information.

Unfortunately, you can’t stop people using VPN from visiting your site, you can at least stop them from clicking many times on your ads to protect your AdSense account.

Alt="AdSense logo"

Blogger AdSense Invalid Clicks Protector Script

Here is script you can use to protect your AdSense account from multiple clicks

<script type='text/javascript'>


function downloadJSAtOnload(){var e=document.createElement("script");e.src="",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;



How AdSense Invalid Clicks Protector Script (Code) Work?

With AdSense invalid clicks protector code inserted in your blog, it will automatically hide your AdSense Ads from the visitor when he clicks on the ads more than 3 times (or as you may set) within short time interval using same IP. Even when ads show after 3 clicks, the AdSense account protector will disable click on your ads for the same IP, i.e the person will not be able to click on the ads — the ads will not respond when clicked on. Google on its own always filter such clicks, subtract them from your clicks and their accrued earnings, but when such clicks become to many and too often, your AdSense account can be endangered.

Steps to Add  AdSense Invalid Clicks Protection Code in Blogger

I’m going to walk you through the steps.

Adding Blogger AdSense JavaScript code Above </head> or </body> tag in your site HTML 

To do this, follow the following steps carefully:

1. Log in to your Blogger dashboard

2. Click on Theme

3. Click on Edit HTML

4. Paste the code below above </head> or </body>

Editable Script:

<script type='text/javascript'>


function downloadJSAtOnload(){var e=document.createElement("script");e.src="",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;




Alt: = "Screenshot of how to insert AdSense invalid click protector code in Blogger"

5.  Save

Now you have protected your AdSense account from invalid and bomb clicking.

Note: You can edit the maximum number of  clicks and time interval of which a visitor is allowed to click on your ads. In the code above, number of clicks is 3 of which ads will stop showing, while time interval is 23000 milliseconds (23 seconds) of which ads will start to show again.

Further Tips on How to Protect Your AdSense Account

Google always advise the following

  • Don’t click on your own ads or ask someone to click on your ads
  • Don’t partner with someone you don’t trust
  • Don’t buy traffic
  • Don’t use malicious software to get traffic
  • Monitor your users and sources of your traffic
  • Connect your AdSense account with your Google Analytics to know the performance of each of your contents, pages and locations of your visitors.

Ikechukwu Evegbu

Ikechukwu Evegbu is a graduate of Statistics with over 10 years experience as Data Analyst. Worked with Nigeria's Federal Ministry of Agriculture and Rural Development. A prolific business development content writer. He's the Editor, Business Compiler

Previous Post Next Post