Solved: Best Way to Detect Ad Blockers

Adblocking continues to grow globally. The use of ad blocker increased by 20-30% between 2015 and 2019 in World.
Users install ad-blockers to remove ads from their web experience and their numbers are growing every day.
Detecting ad blockers can provide an insight into the revenue they are losing. Once that is known, publishers can work on measures to recover the lost revenue.
{Read:- 5 Ways to Improve SEO on Your WordPress Site }
So, how can a publisher detect an ad blocker? Is ad blocker detection possible? What anti-ad blocker measures can publishers try? Here are the answers.
How do Ad Blockers Work?
Ad blockers are browser extensions or plugins that are designed to block the ads displayed on web pages. If you have installed ad blockers, then you may have noticed blank spaces on certain web pages. These blank spaces are where ads were supposed to display. But now, the ad blocker has blocked them and you are seeing blanks.
{Read:- How to Build a WordPress Site in 1 Day }
Using ad blocker reduces page load time. Adding this to the fact that the user can avoid annoying ads.
And you’ll understand how hard it is for publishers to convince users to stop using ad blockers.
But publishers can detect ad blockers and try to recover the lost revenue.
How Can Publishers Detect Ad Blockers?
Anti-ad blockers have a general idea about the web page with ads: the expected web page. Once this web page is loaded on the user’s browser, anti-ad blocker compare the rendered web page with the expected web page. If the data doesn’t match, the website displays an anti-ad blocker message.
Ad Block Detection Scripts
Anti-ad blocker technology is a business now. There are a lot of providers offering applications, plugins, and scripts for publishers to put on their websites. Many ad-block detection scripts are available online which are easy to implement.
{Read:- 10 WordPress Mistakes to Avoid }
- IAB Script
- F**kAdBlock
Custom Ad Block Detection Scripts
Create a small .js file on your web-root with the name of adsbygoogle.js or ads.js
Add a one line small code in this file
var areAdsDisplayed = true;
Now add the below script in footer
<script src=”/adsbygoogle.js”></script>
<script>
if(window.areAdsDisplayed === undefined ) {
alert(‘Ad Blocker Detected’);
//Do any Custom thing.
}
</script>
{Read:- How to configure Horizontal Pod Autoscaler(HPA) in Kubernetes (EKS)? }