Hacker News new | ask | show | jobs
by madads 2545 days ago
I would like to simply block irrelevant YouTube ads while my toddler indulges in ‘Land before time’ episodes. Is that possible? Last time I checked they use some randomised domains to load ads...
4 comments

Firefox with uBlock Origin takes care of that. I haven't seen an Youtube ad in years.

Yes, they use randomised hostnames, but there are other parts of the URL that are not.

If you don't want to use a browser extension for pattern matching the whole URL, you're gonna need a transparent proxy in your networks gateway.

Would that be worth €11.99/month to you? (YouTube Premium)
A router with dnsmasq, it supports wilcards, but devices can only use your router as DNS for it to work.
Try the YouTube Enhancer addon in Firefox