by endisneigh · 3y ago · 0 comments
1. Show an ad, include a special value.
2. Download only if special value is present.
3. If special value is not present, tell user they must disable ad-block to download.
Most sites fail to do this not because of technical complexity, but because they don't care about ad-blocking and/or it doesn't affect their business greatly. In ZS's case, they should've implemented this.
I chalk this up to poor management tbh. Things like the electricity cost increase could have been balanced with more ads to compensate. The kind of things on ZS tend to be nefarious, and the electricity needed would likely be offset by say, a 15 second video being watched before downloading.
It was a cat and mouse game for a while, but ultimately, if you want to detect if someone is using adblock, you need to do it in JS. And then the ad blockers will just add that piece of JS to their block lists.
Since the adblocker strats are necessarily public, you could even have a system to automatically monitor them and apply a set of composable tweaks which breaks the current public release.
I use an ad blocker to block tracking networks and protect my privacy, and one of the end results of that is that visual ads get blocked.
So I can't imagine a scenario where I'd need to fake-render the visual ad, since the ad code never has the chance to get that far.
If the site and js checks and thinks the ad is being displayed but it isn't, that's a win.
But all that only works, because it’s only active on a single website and could change in any way we want in minutes. If it were widespread, it would quickly be blocked, and changes would have to be replicated by everyone using it.