Tutorial - Vevioz's Anti Adblock Scripts for Digital Content Publishers | Vevioz Developers

Tutorial Vevioz's Anti Adblock Scripts for Digital Content Publishers


Linux Systems Engineer
Oct 18, 2019
Reaction score
Novosibirsk, Russia
<style scoped='' type='text/css'>#h237{position:fixed !important;position:absolute;top:0;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+"px");left:0;width:102%;height:102%;background-color:#fcfcfc;opacity:.99;display:block;padding:7% 0;bottom:0;right:0;z-index:9999!important;}#h237 *{text-align:center;margin:0 auto;display:block;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#h237 * a {padding:12px 15px!important;background-color:#f77c6a;color:#fff!important;font-weight:700;font-size:14px;font-family:'Open Sans',sans-serif;text-align:center;text-transform:uppercase;letter-spacing:0.5px;border-radius:3px;display:block;margin:15px auto;clear:both;width:20%;transition:all 0.3s ease-out;}#h237 * a:hover {opacity:.9;}#h237 ~ *{display:none}</style><div id="h237"><span>Mohon Aktifkan Javascript!<a href="http://www.enable-javascript.com/">Enable JavaScript</a></span></div><script>window.document.getElementById("h237").parentNode.removeChild(window.document.getElementById("h237"));(function(l,m){function n(a){a&&h237.nextFunction()}var h=l.document,p=["i","s","u"];n.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,b){return a?h.getElementById(a):h.getElementsByTagName(b)},getStyle:function(a){var b=h.defaultView;return b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,250)},insert:function(a,b){var e=h.createElement("span"),d=h.body,c=d.childNodes.length,g=d.style,f=0,k=0;if("h237"==b){e.setAttribute("id",b);g.margin=g.padding=0;g.height="100%";for(c=this.rand(c);f<c;f++)1==d.childNodes[f].nodeType&&(k=Math.max(k,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));k&&(e.style.zIndex=k+1);c++}e.innerHTML=a;d.insertBefore(e,d.childNodes[c-1])},displayMessage:function(a){var b=this;a="abisuq".charAt(b.rand(5));b.insert("<"+a+'><img src="https://assets.vevioz.com/abp.gif" height="425" width="699" alt="" /> <a href="JavaScript:window.location.reload()">Reload</a>'+("</"+a+">"),"h237");h.addEventListener&&b.deferExecution(function(){b.getElementBy("h237").addEventListener("DOMNodeRemoved",function(){b.displayMessage()},!1)})},i:function(){for(var a="DivTopAd,ad-zone-1,ad_190x90,ads-sticky,iqadtile5,leftframeAD,tobsideAd,ad,ads,adsense".split(","),b=a.length,e="",d=this,c=0,g="abisuq".charAt(d.rand(5));c<b;c++)d.getElementBy(a[c])||(e+="<"+g+' id="'+a[c]+'"></'+g+">");d.insert(e);d.deferExecution(function(){for(c=0;c<b;c++)if(null==d.getElementBy(a[c]).offsetParent||"none"==d.getStyle(d.getElementBy(a[c])).display)return d.displayMessage("#"+a[c]+"("+c+")");d.nextFunction()})},s:function(){var a={'pagead2.googlesyndic':'google_ad_client','js.adscale.de/getads':'adscale_slot_id','get.mirando.de/miran':'adPlaceId'},b=this,e=b.getElementBy(0,"script"),d=e.length-1,c,g,f,k;h.write=null;for(h.writeln=null;0<=d;--d)if(c=e[d].src.substr(7,20),a[c]!==m){f=h.createElement("script");f.type="text/javascript";f.src=e[d].src;g=a[c];l[g]=m;f.onload=f.onreadystatechange=function(){k=this;l[g]!==m||k.readyState&&"loaded"!==k.readyState&&"complete"!==k.readyState||(l[g]=f.onload=f.onreadystatechange=null,e[0].parentNode.removeChild(f))};e[0].parentNode.insertBefore(f,e[0]);b.deferExecution(function(){if(l[g]===m)return b.displayMessage(f.src);b.nextFunction()});return}b.nextFunction()},u:function(){var a="ad&adv_keywords=,-page-peel/,/adchain.,/adfootright.,/adsxml/ad,/adyard300.,/impopup/ad,/loadadsparam.,/meme_ad.,_adshare.".split(","),b=this,e=b.getElementBy(0,"img"),d,c;e[0]!==m&&e[0].src!==m&&(d=new Image,d.onload=function(){c=this;c.onload=null;c.onerror=function(){p=null;b.displayMessage(c.src)};c.src=e[0].src+"#"+a.join("")},d.src=e[0].src);b.deferExecution(function(){b.nextFunction()})},nextFunction:function(){var a=p[0];a!==m&&(p.shift(),this[a]())}};l.h237=h237=new n;h.addEventListener?l.addEventListener("load",n,!1):l.attachEvent("onload",n)})(window);</script>

In the U.S., 30.1% of the population uses adblocking.

In the UK, that number is a staggering 39%, which equates to about £2.9 billion in revenue.

Based on where your readers are located, these numbers will vary, though the message will always be the same:

Adblockers directly affect your bottom line.

Because many publishers monetize their websites and apps through ads (hoping to keep the rest of the experience “free”), this equates to huge losses in revenue each year.

To say that adblocking technology has become a total nightmare for publishers would be an understatement.

So, what do you do?

You can’t just accept that some of those revenue opportunities will be lost to adblock technology.

You have a number of choices:

  1. Develop more user-friendly ads so your users won’t need an adblock in the first place.
  2. Sell paid memberships to your content.
  3. Use an anti adblock script or plugin on your website.
If you want to continue serving up high-quality content to your readers, you must have a way to generate a profit from it.
Let’s explore each of these options.

MobiLoud News lets you build native iOS and Android apps from your WordPress magazine or news site in just days. It’s perfect for publishers and site owners that want the benefits of mobile apps (higher engagement, loyalty, traffic and revenue), without the typical investment of native app development. The platform is fully customizable and proven on the market by hundreds of publishers including Foreign Policy Magazine and Business Insider NL.
Content syncs automatically from your site. The MobiLoud team takes care of all customization, building, publishing and maintenance of your apps. Get a free a demo to get started.

Option 1: Design User-Friendly Ads​

It’s not that your readers don’t want to support your publication by blocking advertisements. Or else, why would they keep coming back?
But ads are often seen as intrusive, annoying, and also bring up questions about privacy. This is why AdBlock is increasingly being adopted around the world.

In terms of how you fight back against technologies taking aim at your earnings, you could start by looking at the root cause: the quality and delivery of the ads themselves.

The Independent, for example, is one such publication that takes great care with developing ads for its website. By integrating native ads that are more engaging and user-friendly, the publication has seen significantly less of an impact from adblockers than the average publisher.

But this requires a great deal of effort and commitment to get the ad format perfected — not to mention all of the content on the site. For now, you want to seek out a quicker but just as effective fix to the problem.

Option 2: Add a Paywall to Your WordPress Site​

Many companies choose a paywall subscription model as an alternative means of revenue generation.
The New York Times (which is built in WordPress) is a well-known example of this.

Readers can access content for free, up to a certain number of articles each month. In order to gain unfettered access, though, they must purchase a subscription.

This way, if the NYT were to lose 30% of potential ad impressions due to adblock, it wouldn’t result in a loss. Subscriptions would provide another (and more reliable) source of revenue.

Paywalls are actually quite easy to implement in WordPress with a plugin. Some of the most popular plugins that do this are:

However, paywalls do put up a barrier to accessing your content, so always keep in mind what’s best for your readers and business. If you want to gain their loyalty and compel them to pay, it has to be a subscription worthy of it.

Check out our article on whether you should implement a paywall if you’re undecided.

Option 3: Sell an Ad-Free Membership​

This option would be similar to a paywall in that you require users to subscribe for an improved experience. However, in this case, you wouldn’t be gating off content on your website. The goal instead would be to promise an ad-free experience when they become a member.

This means you can serve ads guilt-free to fly-by visitors and you can offer a premium experience to those who would rather do away with ads altogether.

To implement this, you would use a combination of a membership plugin (like one of the ones suggested above) and your ads management plugin.

For example, the Advanced Ads plugin enables you to hide all ads from logged-in users.

If you create a dedicated Members-only area on your site, this would be even easier to do as you could just keep that space completely ad-free to begin with. Then, build out your membership program and require all users to be logged in to gain access to the ad-free experience going forward.

But, if you’d rather ask users to disable their adblock which may be more effective, and much quicker to implement than the above options, then an anti-adblock script might be the way forward.

We’ve compiled a list of the best WordPress anti-adblock scripts that you can use to start helping show your ads to more people.

Install an Anti-Adblock Script for WordPress​

According to TechCrunch, 30.5% of the top 10,000 websites use anti adblock scripts and plugins and 38.2% of the top 1,000 do.
Clearly, they see value in being able to share ads with their visitors.
But be careful with this one.

PageFair’s report found that 74% of adblock users in the U.S. will leave a website that has implemented an adblock wall.

30.5% of the top 10,000 websites use anti adblock scripts and plugins according to TechCrunch.
If you’re going to insist that visitors turn off adblock before they can enter, you risk losing a large amount of traffic despite any anti adblock efforts you’ve made.

However, if you rely on ads for monetizing your content, it may be the best option in the short term.

That said, there are a number of WordPress adblock scripts and plugins you can use to send user-friendly notifications about adblock technology without preventing access to the site.

  1. BlockAdblock
  2. deAdblocker
  3. NoAdblock Nice Message
  4. MailOptin Adblock Detection
  5. BAN
Top Bottom