slyfox1186 / pihole-regex

Custom RegEx, Exact, and Adlist filters for Pi-hole's FTLDNS
MIT License
68 stars 10 forks source link

Blocking YouTube or Twitch Ads #10

Closed attheshow2 closed 1 year ago

attheshow2 commented 1 year ago

I'm just curious, do the filters in this project currently help with blocking ads on either Twitch or YouTube? Those are 2 big services I'm wondering if someone already has a technique for. I've heard that blocking YouTube is currently not possible since they serve from the same servers as the videos, but maybe you've found a regex that works? Thanks!

slyfox1186 commented 1 year ago

I have a lot of experience in trying to block youtube. Currently, the way they rotate their domains and their naming schemes make it impossible unless you have the key that breaks their code. It's just too random. A domain that servers an ad today could be "switched" the next hour to serve the actual video and back and forth and then there are a million other domain possibilities past that. So no YouTube is not blockable by pihole. Your absolute best bet is a browser extension for blocking ads. Try the big-name ones. I think one or more of them actually does a pretty decent job.

Twitch I have not looked into. I will do so.