What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Unfortunately I am still getting ads when watching Peppa Pig on Android. Getting Candy Crush Saga, Pinball, asmr slicing, pokemon go etc ads everytime the Timer on the video hits the small yellow bar. Please note on Desktop this is no problem because I have uBlock Origin installed and the ads don't appear.


I've ran option b and ran through installation again but it still persists.

When setting up Diversion I followed the "
How to use an upstream DNS Server like 8.8.8.8 from Google" So I have no idea if maybe enabling that is causing ads to appear.

Edit - Seems I can't upload more than 2 images so I put everything in an album
https://imgur.com/a/Kmxqqxz
Make sure your global filter mode in DNS filter is set to router ... this makes sure all the devices go through dnsmasq
 
Make sure your global filter mode in DNS filter is set to router ... this makes sure all the devices go through dnsmasq

I followed How to exclude a client from ad-blocking in the FAQ.

In your router Web-UI, go to DNS-Filtering
- set 'Enable DNS-based Filtering' to ON
- set 'Global Filter Mode' to 'NO filtering'
- fill in 'Custom (user-defined) DNS 1' with, for example, Google's DNS 8.8.8.8
- select your client(s) in the Client List and set 'Filter Mode' 'Custom 1'
- click Apply

But I made that change but ads still appear.
VJH2k2S.png
 
I followed How to exclude a client from ad-blocking in the FAQ.



But I made that change but ads still appear.
VJH2k2S.png
The Sony TV uses Googles 8.8.8.8 directly, circumventing the routers Dnsmasq and with it Diversion.
 
Code:
if [ ! -f /opt/bin/7z ]; then
            opkg update
            opkg install p7zip
        fi
        /opt/bin/7z a -y -bsp0 -bso0 -tzip "/tmp/""$SCRIPT_NAME_LOWER""data.zip" "$tmpoutputdir/*"
is the snippet I use to zip up a directory silently
Hot damn, is it not extremely satisfying when it suddenly works again?
Had to tweak a bit with a generated list of files to exclude but now the zip option in Diversion for the backup function is back in business.
 
I have two Bravia TV's and I have never had to do this.
I wish I didn't have that problem, but everyones network and devices are different so I have no idea why that works but then that shouldn't be the reason why I still get ads on my Android tablet.
I'll just uninstall Diversion and run through the setup again and leave Youtube videos running from the tablet. Maybe it will work.
 
I wish I didn't have that problem, but everyones network and devices are different so I have no idea why that works but then that shouldn't be the reason why I still get ads on my Android tablet.
I'll just uninstall Diversion and run through the setup again and leave Youtube videos running from the tablet. Maybe it will work.
are you seeing any dns queries to dnsmasq from the device? .... you should be able to see queries in the dnsmasq.log with the IP of your android tablet at the end. You can follow the dnsmasq log in diversion using f option 5 and enter the term googlevideo.com
Code:
May 10 06:48:19 dnsmasq[32061]: query[A] r5---sn-4wg7ln76.googlevideo.com from 192.168.1.193
 
Last edited:
They don't count as ads blocked - yet. Technically all the r*.**-********.googlevideo.com domains that the YT block feature collects are forced to use the same IP address, instead of them individually resolving their own IP. That server behind the forced IP will not have the same content as the real server.
Or so I think this is how it works...

I have yet to build in the counter that includes this new feature.
To check if the YT blocking works, run the f command in Diversion, select one of the Unfiltered log options and view some YT videos.
Every r*.**-********.googlevideo.com that is directed to the forced IP address set and shown in b, 8 potentially shows no video ads.

Edit: And to add, every r*.**-********.googlevideo.com that is not resolved to the forced IP address should then be collected by this new YT blocking feature and added to the list.
Thank you!

Anton
 
Assume -3 brings up query/forwarded etc. for you? -2 is the domain for me
Run the grep in terminal, without the awk, see what you get, the field you're after is from there.
 
Looks like I nailed the YouTube feature, no failures since the last update.
I stressed my main router today with about 15 devices running autoplay YT for about an hour. While the RT-AX88U was unimpressed with that heavy traffic, I was enjoying the System Log page adding lots of domains to the blacklist.

The setup logic, the auto-add and timing adjustments seem sound and working flawless.
I'm happy to say that Diversion now also blocks YouTube video ads, with a few sacrificial ones coming through.
All that with a couple hundred lines of code, lots of coffee, swe@%$ring and almost no pillow time.
Not a bad outcome from post #6000 that triggered it all.

I have posted a thank you comment to the original script coder on Pi-Holes discourse board. To let him know that it's appreciated and made good use of.
 
Looks like I nailed the YouTube feature
You have made possible that which was always claimed impossible.

I feel the excitement and energy in your post. It is well deserved and hard won.

I call upon fellow Diversion users to visit this link as Diversion has reached this major milestone!
https://diversion.ch/donate.html
 
Looks like I nailed the YouTube feature, no failures since the last update.
I stressed my main router today with about 15 devices running autoplay YT for about an hour. While the RT-AX88U was unimpressed with that heavy traffic, I was enjoying the System Log page adding lots of domains to the blacklist.

The setup logic, the auto-add and timing adjustments seem sound and working flawless.
I'm happy to say that Diversion now also blocks YouTube video ads, with a few sacrificial ones coming through.
All that with a couple hundred lines of code, lots of coffee, swe@%$ring and almost no pillow time.
Not a bad outcome from post #6000 that triggered it all.

I have posted a thank you comment to the original script coder on Pi-Holes discourse board. To let him know that it's appreciated and made good use of.
Awesome work! There is probably nothing more satisfying than updating this FAQ: https://diversion.ch/faq-reader/can-diversion-block-youtube-ads.html
 
Looks like I nailed the YouTube feature, no failures since the last update.
I stressed my main router today with about 15 devices running autoplay YT for about an hour. While the RT-AX88U was unimpressed with that heavy traffic, I was enjoying the System Log page adding lots of domains to the blacklist.

The setup logic, the auto-add and timing adjustments seem sound and working flawless.
I'm happy to say that Diversion now also blocks YouTube video ads, with a few sacrificial ones coming through.
All that with a couple hundred lines of code, lots of coffee, swe@%$ring and almost no pillow time.
Not a bad outcome from post #6000 that triggered it all.

I have posted a thank you comment to the original script coder on Pi-Holes discourse board. To let him know that it's appreciated and made good use of.

Cant wait till I get my new ax88 before can test the YT ads blocking feature. I have been following the thread closely. So far everyone testing looks good. (Edit due to the epidemic and usage of positive word). seem worth the new router purchase. Lol.


Sent from my iPad using Tapatalk
 
Last edited:
Just one quirk I noticed with Diversion. I disabled in on Saturday afternoon because I was having problems with Alexa and Diversion number one block is always Amazon analytics.

Overnight, I assume when Diversion refreshed its blocking lists, is restarted itself. Not a huge problem but it would be nice to have and on /off switch that stayed off.

Also as a side note Alexa was working fine again with Diversion running.
 
@thelonelycoder - Thanks for porting this from other adblocker. I was using other firmware and this was one thing that was holding me up to switch to merlin though I have couple 68U and 88U. I am liking diversion however I am not sure if I can see the logs (tail them like pihole) in webUI? I have also installed FreshJW QOS, YazFi, scribe, common, ntpMerlin, scMerlin, spdMerlin, uiDivStats, uiScribe, Entware, and others to test out. I havent’ delved into dnscrypt as I started having issues with apple home.

Long story short - is there specific whiltelisted domains for HomeKit to work. I managed to follow the log for blocked (option 3) sites and saw metrics.icloud.com that I whitelisted, however I am not sure where things fall off. When I turn off Diversion, HomeKit will not work till I reboot router. All works well till I reenable Diversion to break all. BTW, I am using large list.

Any help appreciated
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top