OPNsense Forum

English Forums => General Discussion => Topic started by: robertkwild on January 03, 2023, 06:16:48 PM

Title: ad blocker
Post by: robertkwild on January 03, 2023, 06:16:48 PM
hi all,

whats the best ad blocker as i want to get rid of ads

for ex i want to still go on youtube but just block the ads

thanks,
rob
Title: Re: ad blocker
Post by: lilsense on January 03, 2023, 06:25:50 PM
I recommend PiHole if you have a rPi laying around. you can alos use services suchas adguard on OPNsense or Nextdns.io
Title: Re: ad blocker
Post by: EdwinKM on January 03, 2023, 06:36:35 PM
It is not possible to block youtube ads. The video ads are on the same domains as the main content. In the past the IP for adds were different so it was possible to block those.

Also the connections are encrypted so opnsense has no idea what is sent. Afaik this is only possible using browser plugins (ublock origin). The session at this point is decrypted.
Title: Re: ad blocker
Post by: robertkwild on January 03, 2023, 07:14:51 PM
thanks Edwin ublock is awesome :)
Title: Re: ad blocker
Post by: lilsense on January 03, 2023, 09:50:04 PM
Quote from: EdwinKM on January 03, 2023, 06:36:35 PM
It is not possible to block youtube ads. The video ads are on the same domains as the main content. In the past the IP for adds were different so it was possible to block those.

Also the connections are encrypted so opnsense has no idea what is sent. Afaik this is only possible using browser plugins (ublock origin). The session at this point is decrypted.
You are not really mentioning what platform, but if your only worry is YT, the I recommend looking up sponsorblock. It's an extension on the chrome and there are apps that use it to block whatnot from yt.
Title: Re: ad blocker
Post by: EdwinKM on January 03, 2023, 10:53:43 PM
You are right, i was not crystal clear. Blocking at Apple stuff and native youtube apps is afaik not possible.
But browser stuff is possible.

Thanks for the tip. Did not know SponsorBlock
You prefer SponsorBlock? Or do you also use uBlock Origin? Both seems open source.
Title: Re: ad blocker
Post by: Patrick M. Hausen on January 03, 2023, 11:06:42 PM
AdGuard Home is great and available on OPNsense.
Title: Re: ad blocker
Post by: robertkwild on January 04, 2023, 01:35:15 PM
on opnsense theres

services > unboundDNS > blocklist

can i do it there (to get rid of youtube ads)
Title: Re: ad blocker
Post by: Patrick M. Hausen on January 04, 2023, 01:46:45 PM
As was repeatedly explained there is no DNS based block mechanism that will get rid of YT ads. They are serving the ads from the same hostnames/URLs as the main content.
Title: Re: ad blocker
Post by: robertkwild on January 04, 2023, 01:58:43 PM
ok thanks pmhausen and all :)
Title: Re: ad blocker
Post by: lilsense on January 04, 2023, 10:43:41 PM
Quote from: EdwinKM on January 03, 2023, 10:53:43 PM
You are right, i was not crystal clear. Blocking at Apple stuff and native youtube apps is afaik not possible.
But browser stuff is possible.

Thanks for the tip. Did not know SponsorBlock
You prefer SponsorBlock? Or do you also use uBlock Origin? Both seems open source.

Sponsorblock is the way to go as it also blocks the "Self-Promo!" although you can ignore and watch what you like including the ads and all!!!

I use NewPipe SponsorBlock version to watch YT on droid.
Title: Re: ad blocker
Post by: robertkwild on January 05, 2023, 11:58:55 AM
is there an adblocker for youtube app on android?
Title: Re: ad blocker
Post by: lilsense on January 06, 2023, 02:37:31 AM
Just go to the main source and there are options...

https://github.com/ajayyy/SponsorBlock/wiki/Android
Title: Re: ad blocker
Post by: Abbott on April 26, 2025, 08:02:07 AM
Quote from: robertkwild on January 04, 2023, 01:35:15 PMservices > unboundDNS > blocklist

is there something similar for Dnsmasq?

unboundDNS did not work on my setup..