Youtube Ad-Blocking not working in R7000-Tomato-Shibby

Discussion in 'Tomato Firmware' started by plikmuny, Sep 6, 2018.

  1. plikmuny

    plikmuny New Member Member

    Hi friends, as the Title says, i need an effective Adblocker to block ads in Youtube.
    i have tried almost all the methods available here with inbuilt Adblocker and verious Hosts also the individual Scripts in WANup Interface. But no use. i still see at the beginning of Youtube Videos Ads with varying lenghts... ist very irritating.

    Can anyone suggest me how to block them effectively without compromising the Performance of my Router (R7000).

    Thanks in Advance.
  2. plikmuny

    plikmuny New Member Member

    No one wants to help me ? :oops:
  3. AndreDVJ

    AndreDVJ LI Guru Member

    Adblock solutions around can block most banners (you still have to click that X button in it), but commercials that play at beginning or in-between the videos we really can't do anything about them it's YouTube wreaking havoc in our watching experience.
  4. plikmuny

    plikmuny New Member Member

    Thanks for your prompt reply. Can we add for example Minimum Duration of Video to block or say the Name or some title of this ad Video into Blocklist or ist ip address so that it will also be filtered out ?
    Is it possible ? or difficult Thing to do ? i am no Expert. just curious to know why it cant be done...

    Thanks in advance.
  5. AndreDVJ

    AndreDVJ LI Guru Member

    I guess it's up to each channel owner how frequent can be the ads. There's one channel that display ads every three minutes in a 10-minute video, and I'd like to meet the channel owner personally to slap some sense on.

    It's not a specific ad provider that plays commercials, it's YouTube themselves.
    Tony Ramirez likes this.
  6. koitsu

    koitsu Network Guru Member

    Youtube ads that play at the little orange/yellow markers are indeed blockable using browser extensions like uBlock Origin. This is because of how the video and ad are played:

    * You play the video, watch it
    * Once the ad point (little orange/yellow marker) is reached:
    * Browser essentially stops the existing-playing video
    * Browser does a completely new HTTP/HTTPS fetch for the ad video
    * Browser plays that until ad is over or you skip it (if available)
    * When the ad is done, browser fetches the next part/section of the original video and begins playing from where it left off
    * Rinse lather repeat

    However, I do not believe this is necessarily doable with present-day Tomato-based adblockers. It may require layer 7 filtering rules (uBlock Origin supports both layer 7 as well as DNS-based, so it's very capable). L7-based filtering is extremely CPU intensive (the router has to literally examine every single byte going in/out of the router to see if it matches something you want to block); when done at the router level, it's known to greatly impact throughput. Desktop/laptop CPUs are tremendously faster than router CPUs; consumer routers are designed to do NAT and packet forwarding, not do content filtering. Most Adblock methodologies in Tomato are DNS-based (read: not L7), and to my knowledge absolutely no one maintains an up-to-date L7-based filtering ruleset for ads on Tomato. DNS-based has virtually no performance hit.

    Is it doable on Tomato with L7 filtering? Maybe. Is it feasible? IMO, probably not. Most people focusing on adblocking at the router level are doing it with DNS-based blocking because the router's CPUs cannot do layer 7 filtering quickly. So when you say "can anyone suggest me how to block them effectively without compromising the Performance of my Router (R7000)", my response is "you can't".

    I'm one guy, but my view is this, and has always been this: if you want to block ads, do so at the browser level. If your response is "but there's no such extension for my mobile phone, esp. using native phone apps like YouTube etc.", then my response is "I know -- just live with it". Not quite the answer you want to hear, but that's reality.
    AndreDVJ and Techie007 like this.
  7. Yim Sonny

    Yim Sonny Serious Server Member

    I use this with Google Chrome browser ;

    If it ever stops working or you need it for a different browser then there are numerous good options here ;
  8. plikmuny

    plikmuny New Member Member

    i want to block ads on Youtube because when i am watching Video on Samsung UHD tv (Non-Android Platform) i still see ads. I am no expert to write my own codes for Samsung Platform, and ist not Android. so, i thought i could ask Experts here who might be knowing a way or two to block it.
    Is there an Extension or App which installs on Samsung TV to block ads ?
    On Computer i have been doing it. But for my TV what should i do ?

    Thanks for your Time
  9. cloneman

    cloneman LI Guru Member

    Using a native TV video player is like using a router Native firmware. It's for peasants only :cool:
    Get a chromecast
  10. koitsu

    koitsu Network Guru Member

    OP decided to post in another thread as well. Please try to keep things consolidated to your own thread.

    YouTube recently (past few weeks) revamped how they do advertisement injection, so even things like uBlock Origin are only able to (partially) block ads on YT right now -- I just noticed this myself today (I do not spend much time on YT).

    In other words: as of this writing right now, to my knowledge, nobody has a 100% accurate way of dealing with YT ads. You can beg, cry, pray to the gods, do a rain dance, etc. but it won't speed up the process. People have to reverse-engineer what YT is fetching exactly for ads and see if it can be worked around.

    Ad blocking is a cat-and-mouse game and always will be.
    pedro311 and Techie007 like this.
  11. masster

    masster LI Guru Member

    For now only usable workaround to block youtube ads is to use modded youtube applications or on PC - uBlock Origin. On android devices (phones, tv boxes) there are some applications where blocking ads still working (I can't tell how much I am thankful for them). They look same as originals + have some another features.

    On native TV applications, chromecast etc. it is not so easy and we should get used to seeing ads.
  12. koitsu

    koitsu Network Guru Member

    As of this writing uBlock Origin doesn't block all YT ads -- it blocks some. More precisely: it seems to block most "inline" or "in-stream" ads (read: videos which have several small gold/yellow sections within the video that play ads), but I've seen several YT videos where when viewing a video the first time, a 30-60 second ad is played *before* the actual video. uBlock Origin isn't blocking the latter 100% reliably any more, which means YT/Google changed something in the past few weeks. I'm sure someone will figure it out eventually.
  13. plikmuny

    plikmuny New Member Member

    Thanks for your invaluable suggestion.
  14. sac7000

    sac7000 Networkin' Nut Member

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice