this post was submitted on 13 Jun 2023
554 points (100.0% liked)
Technology
37719 readers
97 users here now
A nice place to discuss rumors, happenings, innovations, and challenges in the technology sphere. We also welcome discussions on the intersections of technology and society. If it’s technological news or discussion of technology, it probably belongs here.
Remember the overriding ethos on Beehaw: Be(e) Nice. Each user you encounter here is a person, and should be treated with kindness (even if they’re wrong, or use a Linux distro you don’t like). Personal attacks will not be tolerated.
Subcommunities on Beehaw:
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Pihole will not block YouTube ads. I think it’s incapable of doing so without blocking YouTube.
The problem is that unlike a lot of other ads YouTube serves its ads from YouTube.com and because of SSL PiHole can only act on YouTube.com as a whole, so there's no way to block just the ads without blocking all of the site.
I can confirm this - the content comes from the same DNS name as the ads, this means pihole cannot distinguish between them
The solution then falls on something like ublock origin - sadly layers of ad blocking is needed in this day and age
Yup. Pi-hole does DNS-level blocking which would only work if YouTube put their ads on some separate (sub)domain.
I actually experimented the other day by turning off ublock origin and letting Pi-hole try to do the work, but I saw ads.
Theoretically, YouTube could set up their infrastructure in such a way as to put the ads in the video stream you receive, but that is complex and has other risks and trade offs.