Anti Adblock Script: How to Show Ads to Ad Blocker Users?

Today, publishers revenue is decreasing continuously due to increasing number of Adblock users. Mostly, people use Adblock Plus and Ghostery to remove ads from websites.  In this post, we will learn some Anti Adblocking scripts that will help bloggers to maximize their Ad revenues.

How Ad blockers Kill Ads?

Adblockers are the extensions that work with different Internet browsers and allow users to prevent page elements, such as (and mainly) advertisements, from being displayed.
As most of the bloggers are dependent on Advertisements (Adsense, Chitika, Infolinks and other ad networks) to earn their living but due to Adblockers publishers are losing their huge revenues.

According to IAB UK reports,

The latest wave of the IAB UK’s Ad Blocking Report, conducted online by YouGov, reveals that 22% of British adults online are currently using ad blocking software – a rise from 18% in October.

At current growth rates, 100% of UK adults will block ads in under 3 years. Here’s a chart by BlockAdBlock to keep you awake at night:

Ad blockers growth rate
Image by:

Some bigger brands like Google and Yahoo are paying lots of money to Ad blocker developers to not block their Ads.

But I don’t think it would be possible for simple bloggers. Then it does not mean that there is no way for those bloggers. There are still a lot of options to bypass Ad block users script.

Some of the most common methods used by bloggers are;

1. Creating a new landing page and requesting users to disable Ad blocker for their sites.

2. Using Anti-Ad blocking plugins.

3. Using Anti Ad block scripts through Pop-Ups and redirections.

No doubt, above given steps work but it is also a reality that these steps badly affect the SEO of their sites. Some of these steps make websites loading slower and some make readers annoying by taking them to some different pages instead of destination pages.

So here today we are with a simple Anti Adblock Script to bypass AdBlock technology. By using this code snippet, you can protect your site from ad-blocking visitors and recover lost revenue.

Place the script just before the close of the </body> tag on your page.

Click here to get Anti Adblock Script by BlockAdBlock.

How to add this script in our websites?

Just copy & paste the script in your page code, right before the closing </body> tag.

WordPress users, please note that you will need to paste the script within the “Appearance > Editor” menu item, most likely in your footer.php file, before the closing </body> tag.

Blogger users, just Edit your template and find </body> tag and paste the script and you will be done.

Why to use only this Anti Adblock script?

I have personally checked this script and working fine. I don’t recommend other scripts because they may reduce the speed of your website which won’t be good for your website’s SEO.

What If I want to show some other alternative Ads to Ad blocker users?

Well, there again we have a solution for your if you want to show some different ads or say like affiliate banners to Ad block users then I would like to introduce with BlogBing. BlogBing is a free and paid (both) blogging platforms like Blogger and WordPress.

BlogBing has recently developed a script for the same purpose. The simple concept is if the user is using Adblock, we will show alternative content to the user. Here, the script waits for 5 seconds after the page load request and checks If  the ad is visible or not. If the ad is not there, the script simply injecting the banner or any other code at the location of the ad unit. If the ad is visible, then the script will do nothing. So, only one ad will be visible to non-Adblock users also.

Here is the script,

<script src=””></script>
<div id=”unit1″>
<!– Your Default Ad Code Here –>
$(this).delay(5000).queue(function() {
if(unit1.clientHeight == 0) {
document.getElementById(“unit1”).innerHTML = “<!– Your Alternative Ad Code Here –>”;

For each ad unit, change the “Unit1” with different values ( Unit2, Unit3 ) in highlighted lines.

According to Blogbing, the best way to use this script is with Affiliation Banner Ads. But it would also depend on your blog topic and how you want to monetize.

A Great tip for affiliate marketers:

If you are an affiliate marketer and use affiliate banners to promote affiliate products on your sites then I have a better way for you people that will also help you to show your affiliate banners to Ad blocker users without using any script.

Simple, firstly save the banner image in your computer then save it on your web server. Now you can add that image to your website and hyperlink that image with your referral affiliate banner. You have done.

Hope you have enjoyed this tip.

Final Words:

I am also a blogger and I can understand how bloggers are feeling these days because of a decrease in their revenues due to increasing Ad block users. But this post and the Anti AdBlock scripts that are given in this post will definitely help you.

You should give a try and feel the difference in your earnings. I would like to have your experience with these scripts and changes in revenues through comments.

Message: I hope that you have enjoyed ‘Anti Adblock Script: How to Show Ads to Ad Blocker Users?‘ article. However, if you want me to deliver more items, then please share my post. You can use Social Sharing Widget provided at the end of every post. After all, Sharing is Caring!

16 thoughts on “Anti Adblock Script: How to Show Ads to Ad Blocker Users?”

  1. Nice article, Ad Block is undoubtly a growing problem for Publisher which need to be Dealed, Here is my website i am using it since 2014, But i witnessed 40% reduction in my revenue this year thats all due to Ad-Blockers. I am almost out of Budget to maintain my website costs.

    1. Yes, 90% publishers are suffering with the issue of Ad blockers. For those publishers these scripts will be useful.

  2. This doesn't work for my website. Does it not work for PHP built websites? Am I doing something wrong? I copied the code into my footer.php before the /body tag.

Leave a Comment

Your email address will not be published. Required fields are marked *