ASPENSMONSTER Just another WordPress site

June 19, 2015

Experiments in Blocking Ads on the Twitch Roku App

Filed under: Uncategorized — aspensmonster @ 12:03 am

Flattr this!

Wow. So I haven’t written anything for this in ages it seems. I can’t say I have much content to give, but I recently acquired a Roku. It shows ads. I’m not down with appliances I own doing things I don’t like. So I looked into ad-blocking, and sure enough, Reddit has the answer:

It involves network-level blocking. Not the best approach, but until pervasive rooting efforts are underway for the Roku it’s better than nothing. I utilized the following regex to block the mentioned URLs at Layer 7 on my Mikrotik router device-wide on the FORWARD chain:


This will surely have a performance impact, so I’m looking into restricting the packet body check to just the MAC of the Roku. Will update if I figure that out.

After restarting the Roku, sure enough, the irritating-ass adverts to the right of my home screen were gone. However, I then noticed that I couldn’t watch any streams from the Twitch app. Any attempt to load a stream –any stream, no matter the viewer count or relative obscurity of the title– was met with a black screen and “Retrieving…” text for approximately 30 seconds, followed by a return to the Roku home screen. It was as if the Twitch app had simply crashed.

I was able to isolate traffic on my network and confirm that it was the Roku hitting the firewall rule when attempting to watch the stream. I’ve got work in the morning, but I’m making it a weekend project to figure out if there’s a way to get ad-blocking working in the Twitch Roku app (and perhaps other apps as well), and perhaps on the Chromecast as well.


  1. Did you figure anything out?

    Comment by Joseph — September 19, 2015 @ 12:00 pm

  2. Yeah did you figure anything the fu ck out or what?!?
    (A year later) but on my search string FOREVEr!

    Comment by Good time — May 30, 2016 @ 12:44 am

RSS feed for comments on this post.

Leave a comment