You are viewing a single thread.
View all comments
55 points

This already exists - @soatok@furry.engineer’s blog already has a popup about not having an adblocker, although it is easy to dismiss. It’s probably a bad idea to block content based on not having one, as detecting ad blockers is a losing battle (as YouTube is learning).

permalink
report
reply
31 points

i don’t really know what im talking about, but wouldn’t it be a bit easier in this case since the goal isn’t to evade the ad blocker? rather than try to detect the ad blocker, wouldn’t it be possible to design the pop up so that it’s easily detected by ad blockers (or annoyance blockers)?

permalink
report
parent
reply
8 points
*

If you’re not serving data from a popular ad server like google/doubleclick there will always be a false positive or two, especially with things like hosts-based ad blockers that are extremely rudimentary but work ~60-70% of the time.

And if you manage to serve data from doubleclick then either you’re working for them or something has gone horribly wrong. In either case just putting up a script to say “please use an ad blocker” is the least of your concerns.

permalink
report
parent
reply
3 points

Yeah, I use this one and got served with the popup as expected

permalink
report
parent
reply
6 points

Not all ad blockers remove elements from web pages, and if they acted that predictably you could detect the ad blocker by detecting whether an expected element is hidden.

I have not looked through an ad blocker’s code, but I don’t believe it is that simple.

permalink
report
parent
reply
4 points

Looking at this blogpost for a wordpress blocking plugin, it basically is just adding a bunch of css classes commonly used by ads to a div and some workarounds to support ad blockers that work by blocking files.

permalink
report
parent
reply
7 points
*
Deleted by creator
permalink
report
parent
reply
5 points

yeah the adblock detection doesn’t work for me

at least not in Mull with uBlock Origin on Android with AdAway (root)

permalink
report
parent
reply
3 points

Web Environment Integrity enters the room

permalink
report
parent
reply
3 points

Just put class=“facebook ad” to your div and 99% of adblockers will hide it, really simple.

permalink
report
parent
reply
3 points

ah but this is easy to deal with. Simply put the message in an ad campaign that

permalink
report
parent
reply

me_irl

!me_irl@lemmy.ml

Create post

Selfies for the soul.

Community stats

  • 133

    Monthly active users

  • 287

    Posts

  • 1.1K

    Comments

Community moderators