Anti Ad Blocker Script For Blogger (V1)

0
(0)

Ad blockers have become increasingly popular, and while they provide a better browsing experience for users, they can negatively impact website revenue for publishers. If you’re a Blogger user looking to counter ad-blocking software and ensure your ads are displayed to all visitors, implementing an anti-ad blocker script can be a viable solution. In this tutorial, we’ll guide you through the process of setting up an anti-ad blocker for your Blogger website.

How To Implement Anti Ad Blocker 

  1. Go To Your Blloger Layout Dashboard
  2. Add A Gadget Anywhere But You Can Use This Script Above Capyright Footer For Better Experience
  3. The One And Only Code You Can Paste On Your Theme In Below<Body> Tag Above</Head> Tag 
  4. But In My Case I Will Used In Layout That Help To Disable Script Easy And Fast 
  5. So Now Simply Add A  Gadget On Your Layout Before Copyright Footer (If Not Available You Can Put In Sidebar)
  6. Now Add A HTML Javascript Gadget And Pastr Your Whole Code In Content
  7. Save Your New Gadget
  8. Done ✅ You Have Implemented Anti Ad Blocker With Lazyload And Scroll Function. 
 <div class='adblcr hidden' id='superadblocker'>

  <div class='textsshow'>

    <svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><circle cx='12' cy='12' r='10'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01' y1='16' y2='16'/></svg>

    <h2>Ad-Blocker Detected!</h2>

    <p>ad blocker detected ⚠️.<br/>Please consider disabling your Ad-Blocker to enjoy our website content, it helps us in developing this Website.<br/>Thank you!!</p>
<a href="/">🔃</a>
  </div>

</div>
<style>
.adblcr{position:fixed;z-index:99999;top:0;bottom:0;left:0;right:0;padding:20px;background:#f3f5fe;display:flex;justify-content:center;align-items:center}

.adblcr.hidden{display:none}

.adblcr .textsshow{position:relative;background:#fff;max-width:400px;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:30px;border-radius:30px}

.adblcr .textsshow svg{display:block;width:50px;height:50px;fill:none !important;stroke:#08102b;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}

.adblcr .textsshow h2{margin:10px 0 15px 0;font-size:1.2rem;font-weight:800;color:#08102b}

.adblcr .textsshow p{margin:0;line-height:1.7em;font-size:0.9rem;color:#08102b}

</style>

<script>/*<![CDATA[*/ /* Anti Ad-Blocker Script by dk technozone.in */ var lazyAnti=!1;window.addEventListener("scroll",function(){(0!=document.documentElement.scrollTop&&!1===lazyAnti||0!=document.body.scrollTop&&!1===lazyAnti)&&(!function(){var superadblocker=document.querySelector("#superadblocker");var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";e.onerror=function(){if(superadblocker!=null){superadblocker.classList.remove("hidden");window.lazyAnti=!0}};var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}(),lazyAnti=!0)},!0); /*]]>*/</script>

  

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply