r/selfhosted • • 10d ago

Webserver Pixelserv question

I'm using unbound dns with oisd.nll blocklists to prevent tracking and seeing advertisements. Sometimes I'll get a 'we detect an ad blocker' banner.

I'm curious if projects like pixelserv-tls where a locally hosted 1px x 1px image is loaded in place of the ad still work in 2026. AI chat sessions say this approach doesn't work so well these days as adblock detection has gotten better.

Any other tips on a network wide adblock method would be appreciated. Thanks.

7 Upvotes

5 comments sorted by

•

u/asimovs-auditor 10d ago

Expand the replies to this comment to learn how AI was used in this post/project.

→ More replies (1)

5

u/Consistent_Piano4250 10d ago

dns blocking (unbound + oisd, pihole, pixelserv, all of them) can't really fix the "we detect an ad blocker" banner. that banner comes from a script on the page checking whether the ad script actually ran or whether a bait element got hidden. pixelserv only changes how the blocked request fails. you get a 1px gif or an empty reply instead of a dns error, but the ad code still never runs, so the check fails the same way. for https it also needs its own CA cert installed on every device or you just get cert errors, which is a pain on phones and tvs.

what handles the banners is ublock origin in the browser, since its lists ship site specific fixes that neuter those detection scripts. on chrome you only get ublock origin lite now, which can do less of that, firefox still has the full one. keep unbound + oisd for the stuff you can't install anything on (tv, apps) and put ublock on the browsers.

1

u/toakao 9d ago

> dns blocking can't really fix the "we detect an ad blocker" banner. 

Bummer. That's not what I was hoping to see.

> for https it also needs its own CA cert

I also hadn't thought of needing to create a wildcard cert for the pixelserv instance and distributing custom intermediary certificates to all local devices.

>  keep unbound + oisd for the stuff you can't install anything on (tv, apps)  and put ublock on the browsers.

I don't have a smart TV but this is a good suggestion.

Now I need to rethink my use case for running a recursive resolver at home or switching back to dnsmasq. Either way it seems ublock origin is the solution to my question.

Thanks for making time to reply.