To get rid of the annoying YouTube message (ad blocker are not allowed on Youtube) use this custom filter in uBlock extension

  1. Open uBlock extension dashboard
  2. Open my filters tab
  3. Copy & Paste this code into my filter
  4. Apply changes and close all tabs

via: enderman

  • @mouth_brood
    link
    English
    127 months ago

    Is the any way to add something like this to my pihole to block all this shit network wide?

    • denny
      link
      fedilink
      English
      177 months ago

      Pihole, if i understand correctly, works by blocking DNS requests and YouTube ads are not DNS based the way ads usually are. You’re stuck blocking them by uBO on each device or use Invidious.

        • @Swarfega@lemm.ee
          link
          fedilink
          English
          3
          edit-2
          7 months ago

          I’ve run pihole for years. It works really well. The only problem I’ve seen is when you actually need a tracking URL to work. For example clicking a link in your emails to download a ticket for a concert. You just need to be mindful that when the browser fails to open a link it’s because of the PiHole. There’s no nice screen telling you. You just need to pop it into the whitelist to allow it although on a phone I just used to go to mobile data temporarily, click the link and then go back on WiFi.

          I recently switched to using NextDNS, as it means all my DNS queries are encrypted and I still get filtering when I’m away from home. I also have three kids to manage so it allows me to set timers on their devices to block certain traffic. Good for blocking adult sites too.