![]() ![]() So I know that the Pi-hole is working, but when you actually try to do this while streaming a video, the effect doesn’t quite work. I set up my Pi-hole to block just those two domains, and I can see that it is actually serving up my streaming video instead of the ad image as you can see in the screenshot below: So according to Hulu’s information, in order for ads to get through, the following two domains need to be unblocked: Both files should be able to co-exist, but I don’t know what happens if there are duplicate entries in each. Note that this script will create a file called nf instead of nf . Or you can run the gravity-adv.sh script, which pulls ad URLs from many different sources (including many Hulu ones). If you strictly want to block Hulu video ads and nothing else, make a file with just the Hulu ad URLs, which I will discuss in a moment. You can add two different things to this file. Next, create a list of known ad URLs that will be redirected when queried by DNS. To see what some these options mean, check out the original Pi-hole ad blocker. # Change the IP below to the IP of your Raspberry Pi Then, edit a new config file with the following content (note that this is slightly different than the previous setups): sudo vi /etc/nf no-resolv Make a backup of the original nf file so you have something to revert to if you make a mistake. Run these commands to install dnsmasq sudo apt-get -y install dnsutils dnsmasq (Almost) never see an annoying video ad again.Set your device to use the Raspberry Pi as its DNS server.Re-direct Hulu’s ad URLs to the page hosting the video uploaded in step 2.Upload a very short video to the Pi that will be shown instead of the Hulu ads.Set up MiniDLNA to serve streaming video content to your devices.You will need both dnsmasq and the lighttpd Web server for this walkthrough, as well as minidlna . If you already have set up the Raspberry Pi as an ad-trap, you might just need to modify some of the steps below but this walkthrough can be done as a stand-alone project, so you may want to start from a fresh, clean install of Raspiban. How To Block Hulu Plus Ads On A Raspberry Pi Nevertheless, I wanted to post my efforts in case someone smarter knows what I might be missing. Please follow the steps below and keep in mind that it might not actually skip the ads. I feel like Hulu might have changed something, or maybe a piece of the software used in this tutorial was updated/changed. As I mentioned, I had it working at one point, but when I tried to replicate it, I could not. ![]() This is the culmination of the Pi-hole ad-blocker and is an fairly technical setup. I am curious to know if anyone else can get it working. Give the steps below a try and let me know in the comments if you have any success. I still think this is true because I did have it working at one point. Earlier, I speculated that the Hulu video ads might not be getting skipped because they needed to have streaming video content instead of a static Webpage. In theory, everything sounds like it should work. A lighttpd Webserver running on the same machine (the Pi) then redirects that request to another URL, which delivers streaming content via minidlna .If the DNS server running on your Raspberry Pi determines that the query is a URL known to serve ads, it redirects the client to the Pi instead of the real location.When I had this working, it would use DNS spoofing and then deliver my own streaming content in place of Hulu’s video ads. If I ever get it working, I will post that command here. I also liked this idea so much, that I had it set up to be able to be installed with a single command. Maybe I missed something along the way, but I am hoping someone out there will know more than me and help figure out a way to block them. I was able to completely skip the ads using this method, but could not once I followed through my own walkthrough. Disclaimer: It Worked Once, But I Cannot Reproduce The ResultsĪs of now, this article is posted more for informational purposes as opposed to a working solution. The basic concept was to deliver your own streaming content (stored on the Raspberry Pi) in place of Hulu’s video ads. Since then, I have gone through the steps many, many times and have come to the conclusion that Hulu must have changed something on their end that disrupted my method, or I forgot to document a crucial step… Unfortunately, when I reinstalled Raspbian and tried to follow my own steps (a few weeks later), it no longer worked. The Hulu video ads would be completely skipped (not just 30-90 seconds of silence). What is strange is that I actually had this working at one point. I just need to make some time to write it up… I have some more information about blocking video ads. ![]()
0 Comments
Leave a Reply. |