Adblock lock bypass, and lock bypass lock

The article discusses one of the effective methods to counter adblock, and a workaround for this method. This circle is eternal - but it seems that the advertisers have pulled ahead!



Once, on one site, the administration politely asked users to add the site to the ad block exceptions. I, as a conscious user, did it - but after some time the advertisement that appeared became completely different from the acceptable advertisement , and I turned on the ad block again. To my surprise, the advertisement did not disappear - and I began to figure out what was the matter.

1. Bypass adblock by developers:


The adblock workaround used by the site developers turned out to be very effective: they placed ads in a div with a random variable class that changed every time the page was reloaded. Also, all the attributes by which it was possible to identify the div or the advertisement inside were removed: no constant id elements, the image of the advertisement is loaded from the hosting, which stores useful pictures. The upstream div contains a lot of useful information, so you won’t block it either.

A random variable class for an advertising element is precisely behind this, it seems to me, the future of online advertising. At least, with a huge audience of the site - in standard ad block subscriptions this advertisement is not blocked until now.

2. Blocking ads by the user, bypassing the adblock bypass:


I had to create a rule to exclude nested useful elements. The description of creating filters for adblock doesn’t talk about this anywhere, so people unfamiliar with CSS are unlikely to be able to do this. Maybe my article will help them with this.

The following construction is used for nested elements in adblock: To exclude elements by some attribute, the not construction is used: Thus, the desired rule looks like this: This allows you to block all elements nested in sidebar_right, except for those that have the block class. The problem was solved - what next?
div.внешний_класс > div.внутренний_класс



div:not(.полезный_класс)



имя_сайта##div.sidebar_right > div:not(.block)



3. Bypassing such a tricky block from the developers:


You can get around this blocking by modifying the site engine. For example, if both the parent container and the nested useful divs will also have variable class names, there simply will not be mechanisms in the ad unit to identify them. So, I repeat - it is precisely with this approach that I see the future of advertising, while more and more users are setting filters , and the ad unit is starting to advertise itself .

And, finally, another effective way for webmasters: you can simply add unobtrusive ads , then users will begin to relate to it much more loyally.

Also popular now: