How To Install Anti Adblock Script In Blogger?
are you looking for best anti ad blocker script for blogger that will detects all adblocker and allows ads on your website. then you have come to the right website.
what is ad blocker
An ad blocker is a software application or browser extension designed to prevent online ads from appearing on a website. Ad blockers work by recognizing the code used to display ads and blocking it from loading. This can result in a faster and less cluttered browsing experience for the user. Ad blockers are popular because they can help users avoid unwanted advertisements, prevent malicious ads, and reduce data usage. However, it's important to note that many websites rely on ads for revenue, so using an ad blocker can impact the financial viability of these websites.
thats why you should use anti ad blocker script or ad blocker killer script for your website
How ad blocker affect adsense earning
Ad blockers can significantly impact AdSense earnings as they prevent ads from being displayed on a website, which can reduce the number of impressions and clicks that ads receive. AdSense is an advertising program run by Google that allows website owners to display ads on their sites, and they are paid based on the number of clicks or impressions the ads receive.
When visitors use ad blockers to block ads, the number of impressions and clicks on the ads decrease, which in turn reduces the revenue generated from AdSense. This can lead to a decrease in the revenue earned by website owners who rely on AdSense as a primary source of income.
To mitigate the impact of ad blockers on AdSense earnings, some website owners may choose to implement strategies such as encouraging visitors to disable their ad blockers, creating ads that are less intrusive, or offering alternative revenue streams such as sponsored content or affiliate marketing.
so, i recommend to use adblock killer script on your website by which you can earn more revenue from your website
How Do I Install Anti Adblock script in blogger ?
If you want to install adblocker detector script or adblock killer script in your website, then you should follow some steps given below.
use following steps for anti ad blocker script for blogger or you can tell best anti adblock script for blogger 2023.
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 ]]></b:skin>
and paste the following CSS Codes just above to it.
/* Pop-Up Box (Style 2) by Fineshop */
.popSc{position:fixed;top:0;bottom:0;left:0;right:0;padding:20px;background:rgba(255, 255, 255, 0.1);z-index:99980;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;justify-content:center;align-items:center}
.popSc.hidden{display:none}
.popSc .popBo{position:relative;background:rgba(255, 255, 255, 0.8);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);max-width:400px;display:flex;justify-content:center;align-items:center;flex-direction:column;padding:30px;border-radius:20px;box-shadow:0 5px 25px rgb(0 0 0 / 20%)}
.popSc .popBo svg{display:block;width:50px;height:50px;fill:none !important;stroke:#08102b;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}
.popSc .popBo h2{margin:10px 0 15px 0;font-size:1.2rem;font-weight:800;color:#08102b}
.popSc .popBo p{margin:0;line-height:1.7em;font-size:0.9rem;color:#08102b}
.popSc .popBo .popBtn{display:inline-flex;justify-content:center;align-items:center;height:50px;width:50px;outline:none;border:none;background:#482dff;border-radius:50%;margin-top:20px;transition:all .2s ease;-webkit-transition:all .2s ease}
.popSc .popBo .popBtn:hover{transform:scale(1.05);-webkit-transform:scale(1.05)}
.popSc .popBo .popBtn svg{width:24px;height:24px;stroke:#fff;flex-shrink:0}
.popSc .popBo .popBtn svg.r{animation:rotateIcn 1.5s infinite linear;-webkit-animation:rotateIcn 1.5s infinite linear}
.popSc{animation:popupBlur .3s ease-in; -webkit-animation:popupBlur .3s}
.popSc >*{animation:popupScale .3s ease-in; -webkit-animation:popupScale .3s}
.darkMode .popSc{background:rgba(0, 0, 0, 0.1)}
.darkMode .popSc .popBo{background:rgba(50, 50, 50, 0.8)}
.darkMode .popSc .popBo svg{stroke:#fefefe}
.darkMode .popSc .popBo p, .darkMode .popSc .popBo h2{color:#fefefe}
@keyframes popupBlur {from{opacity:0}to{opacity:1}}
@-webkit-keyframes popupBlur{from{opacity:0}to{opacity:1}}
@keyframes popupScale{from{transform:scale(0);animation-timing-function:ease-in;opacity:0}to{transform:scale(1);opacity:1}}
@-webkit-keyframes popupScale{from{-webkit-transform:scale(0);-webkit-animation-timing-function: ease-in;opacity:0}to{-webkit-transform:scale(1);opacity:1}}
@keyframes rotateIcn{from{transform:rotate(0deg)} to{transform:rotate(359deg)}}
@-webkit-keyframes rotateIcn{from{-webkit-transform:rotate(0deg)} to{-webkit-transform:rotate(359deg)}}
Step 7: Lastly, Save the changes by clicking on this icon<script>/*<![CDATA[*/ /** * Anti Ad Blocker Code by Fineshop Design * Last Updated: 15:22 16/02/2023 IST * Copyright: https://www.fineshopdesign.com */ (function(key){const data={allowed:null},url="https://cdn.jsdelivr.net/gh/fineshop/plus-ui@2.7/main/ads/adsbygoogle.js";this[key]=function(callback){if("function"!=typeof callback)return;const called=[];function oneTimeCallback(){0===called.length&&(called.push(1),callback(data))}if("boolean"!=typeof data.allowed){let xhr=null;try{xhr=new XMLHttpRequest}catch(e){try{xhr=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{xhr=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){return}}}xhr.onreadystatechange=function(){if(xhr.readyState===xhr.DONE){if(xhr.status>=200&&xhr.status<=299){const fakeAd=document.createElement("div");fakeAd.className="textads banner-ads banner_ads ad-unit ad-zone ad-space adsbox ads",fakeAd.style="height: 1px; width: 0; opacity: 0; visibility: hidden; position: fixed; bottom: 0",document.body.appendChild(fakeAd),data.allowed=0!==fakeAd.offsetHeight,fakeAd.remove()}else data.allowed=!1;oneTimeCallback()}},xhr.onerror=function(){data.allowed=!1,oneTimeCallback()},xhr.open("GET",url),xhr.send("")}else oneTimeCallback()}}).call(this,"checkAdsStatus"); function antiAdBlockerHandler() { window.checkAdsStatus(function(ads) { if (!ads.allowed) { // Ads are Blocked console.log("%c[ADS]", "color:#d32f2f;", "Blocked"); const icon = "<svg style='stroke:none;fill:currentColor!important' viewBox='0 0 24 24'><path d='M12.2 9L10.2 7H13C14.1 7 15 7.9 15 9V11.8L13 9.8V9H12.2M23 9V7H19C17.9 7 17 7.9 17 9V11C17 12.1 17.9 13 19 13H21V15H18.2L20.2 17H21C22.1 17 23 16.1 23 15V13C23 11.9 22.1 11 21 11H19V9H23M22.1 21.5L20.8 22.8L14.4 16.4C14.1 16.7 13.6 17 13 17H9V10.9L7 8.9V17H5V13H3V17H1V9C1 7.9 1.9 7 3 7H5.1L1.1 3L2.4 1.7L22.1 21.5M5 9H3V11H5V9M13 14.9L11 12.9V15H13V14.9Z'/></svg>"; const title = "Ad blocker detected!"; const message = "<p>We have detected that you are using adblocking plugin in your browser.<br/>The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.</p>"; // Lets create the popup const element = document.createElement("div"); element.className = "popSc"; element.innerHTML = "<div class='popBo'>" + icon + "<h2>" + title + "</h2><div class='popCo'>" + message + "</div></div>" document.body.appendChild(element); } else { // Ads are allowed; console.log("%c[ADS]", "color:#43a047;", "Allowed"); } }); document.removeEventListener("DOMContentLoaded", antiAdBlockerHandler); }; if (document.readyState === "complete" || document.readyState !== "loading") { antiAdBlockerHandler(); } else { document.addEventListener("DOMContentLoaded", antiAdBlockerHandler); } /*]]>*/</script>