Please Subscribe To My YouTube Channel Subscribe Now!

How to protect AdSense account from click bombing.

How to protect Ads from Click Bombing in Wordpress,AdSense Click Protection,kamalbhaiji
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Hello, Bloggers! Welcome to Kamal Bhai Ji.

เคฏเคฆि เค†เคชเค•े เคชाเคธ Adsense approved site, เคคो เค†เคชเค•ो invalid clicks เค•े เค•ाเคฐเคฃ Ad-limits เค•े issues เค•ा เคธाเคฎเคจा เค•เคฐเคจा เคชเคก़ เคธเค•เคคा เคนै। Adsense เค†เคชเค•ी เคธाเค‡เคŸ เคชเคฐ limited time เค•े เคฒिเค Ads เคฆिเค–ाเคจे เคชเคฐ restrict เคฒเค—ा เคธเค•เคคा เคนै। เคฏเคฆि เค†เคช เค…เคชเคจे visitors เคฆ्เคตाเคฐा Adsense เคชเคฐ clicks เค•ो control เค•เคฐเคจा เคšाเคนเคคे เคนैं, เคคो เค†เคชเค•ो เค‰เคจ codes เค•ो เค†เคœ़เคฎाเคจा เคšाเคนिเค เคœिเคจ्เคนें เคฎैं เค†เคœ share เค•เคฐเคจे เคœा เคฐเคนा เคนूं.

Adsense Click Anti Bomb Script
© Fineshop Design | Adsense Click Anti Bomb Script

How does it work?

Basically, เคนเคฎ visitors เค•े browser เคฎें Cookies เค•ो เค‡เคธ เค†เคงाเคฐ เคชเคฐ set เค•เคฐेंเค—े เค•ि เค‰เคจ्เคนोंเคจे Ads เคชเคฐ เค•िเคคเคจी เคฌाเคฐ click เค•िเคฏा เคนै। เค†เค‡เค เคเค• เค‰เคฆाเคนเคฐเคฃ เคธे เคธเคฎเคเคคे เคนैं.

เคฎाเคจ เคฒीเคœिเค เค†เคชเคจे maximum 3 clicks เคจिเคฐ्เคงाเคฐिเคค เค•िเค เคนैं। เคœเคฌ เคญी, เคตเคน Ads เคชเคฐ click เค•เคฐेเค—ा, click เค•े เค†เคงाเคฐ เคชเคฐ เคฎूเคฒ्เคฏ เค•े เคธाเคฅ desired key (i.e. "MAX_CLICKS") เค•े เคธाเคฅ เคเค• cookie เค‰เคจเค•े browsers เคฎें set เคนो เคœाเคเค—ी, เค”เคฐ เคช्เคฐเคค्เคฏेเค• click เค•े เคฌाเคฆ 1 increment  เคฌเคข़ เคœाเคเค—ा। เค‡เคธเคฒिเค, เคœเคฌ เคตे เคธीเคฎा เคคเค• เคชเคนुंเคš เคœाเคंเค—े (i.e. 3 เคฌाเคฐ) เค”เคฐ เคซिเคฐ เคธे Ads เคชเคฐ click เค•เคฐेंเค—े, เคคो Ads เค—ाเคฏเคฌ เคนो เคœाเคंเค—े। เค…เคฌ, เคตे เค†เคชเค•े เคฆ्เคตाเคฐा disappear time เค•े เคฒिเค เค•ोเคˆ Ads เคจเคนीं เคฆेเค–ेंเค—े।

Getting Started

Important!Before we start adding codes in XML, I will recommend you to take a Backup of your current theme. By chance if any problem occurs, you can restore it later.

Step 1: First of all Login to your Blogger Dashboard.

Step 2: On Blogger Dashboard, click Theme.

Step 3: Click the arrow down icon next to 'customize' button.

Step 4: Click Edit HTML, you will be redirected to editing page.

Step 5: Now search the code </head> and paste the following JavaScript Codes just above to it.

<script>/*<![CDATA[*/
  // Cookie functions
  const Cookie = {
    get: (e) => { e = document.cookie.match(new RegExp("(?:^|; )" + e.replace(/([.$?*|{}()[\]\\/+^])/g, "$1") + "=([^;]*)")); return e ? decodeURIComponent(e[1]) : void 0 },
    set: (e, n, o = {}) => { o = { path: "/", ...o }, o.expires instanceof Date && (o.expires = o.expires.toUTCString()); let c = unescape(encodeURIComponent(e)) + "=" + unescape(encodeURIComponent(n)); for (var t in o) { c += "; " + t; var a = o[t]; !0 !== a && (c += "=" + a) } document.cookie = c },
    rem: (e) => { Cookie.set(e, "", { "max-age": -1 }) }
  }

  // Anti bomb config
  const antiBombSet = {
    timeOut: 3600, // Timeout in seconds, when to ads appear after maximum clicks
    maxClick: 3, // No of maximum clicks
    cookieKey: "MAX_CLICKED", // Cookie key to set
    adsSelectors: "ins.adsbygoogle", // Ads selectors
    iframeSelectors: "ins.adsbygoogle iframe", // Ads iframe selectors
    callback: () => {
      // Runs only one time if/when clicked maximum times on ads
      if (antiBombSet.executed === undefined) {
        antiBombSet.executed = !0;

        // Prevent clicks on ads placement with pointer-events:none | You can also try display:none
        const declarations = "{pointer-events:none}";
        if (document.getElementById("mxAds_stl") == null) {
          var stl = document.createElement("style");
          stl.id = "mxAds_stl";
          stl.innerHTML = (antiBombSet.adsSelectors || ".adsbygoogle") + declarations;
          document.head.appendChild(stl);
        }

        // Add your js below to execute if/when clicked maximum times on ads
        // console.warn("You have clicked the maximum times on ads. Don't click on ads if you don't want to support us.");

      }
    }
  };

  if (Cookie.get(antiBombSet.cookieKey || "ADS_CLICK") != undefined && parseInt(Cookie.get(antiBombSet.cookieKey || "ADS_CLICK")) >= (antiBombSet.maxClick || 3)) {
    antiBombSet.callback()
  };
/*]]>*/</script>

Step 6: Search the code </body> and paste the following JavaScript Codes just above to it.

<script>
  /*<![CDATA[*/
  !function(){function b(a,b){return null!=(a=Cookie.get(a))&&parseInt(a)>=b}var d=antiBombSet.cookieKey||"ADS_CLICK",a=antiBombSet.adsSelectors||".adsbygoogle",f=antiBombSet.timeOut||7200,g=antiBombSet.maxClick||3;0<document.querySelectorAll(a).length&&document.querySelectorAll(a).forEach(a=>{a.addEventListener("click",function(){var a,c;b(d,g)?antiBombSet.callback():(a=d,null==(c=Cookie.get(a))?Cookie.set(a,"1",{secure:!0,"max-age":f}):(c=parseInt(c)+1,Cookie.set(a,c.toString(),{secure:!0,"max-age":f})))})}),window.addEventListener("blur",function(){b(d,g)&&antiBombSet.callback();for(var c,h,i=document.querySelectorAll(antiBombSet.iframeSelectors||".adsbygoogle iframe"),j=0;j<i.length;j++)document.activeElement==i[j]&&(b(d,g)?antiBombSet.callback():(c=d,null==(h=Cookie.get(c))?Cookie.set(c,"1",{secure:!0,"max-age":f}):(h=parseInt(h)+1,Cookie.set(c,h.toString(),{secure:!0,"max-age":f}))))})}();
  /*]]>*/
</script>

About the Author

I'm Kamal Founder & CEO of Kamal Bhai Ji. Expert Content Writing, Social Media Marketing, AI Tools Provider, and Blogger Expert. Have 7 Years of Experience in these fields.

2 comments

  1. tx you
    1. welcome
Cookie Consent
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.