Going To Extremes To Block YouTube Ads

Many users of YouTube feel that the quality of the service has been decreasing in recent years — the platform offers up bizarre recommendations, fails to provide relevant search results, and continues to shove an increasing amount of ads into the videos themselves. For shareholders of Google’s parent company, though, this is a feature and not a bug; and since shareholder opinion is valued much more highly than user opinion, the user experience will likely continue to decline. But if you’re willing to put a bit of effort in you can stop a large chunk of YouTube ads from making it to your own computers and smartphones.

[Eric] is setting up this adblocking system on his entire network, so running something like Pi-hole on a single-board computer wouldn’t have the performance needed. Instead, he’s installing the pfSense router software on a mini PC. To start, [Eric] sets up a pretty effective generic adblocker in pfSense to replace his Pi-hole, which does an excellent job, but YouTube is a different beast when it comes to serving ads especially on Android and iOS apps. One initial attempt to at least reduce ads was to subtly send YouTube traffic through a VPN to a country with fewer ads, in this case Italy, but this solution didn’t pan out long-term.

A few other false starts later, all of which are documented in detail by [Eric] for those following along, and eventually he settled on a solution which is effectively a man-in-the-middle attack between any device on his network and the Google ad servers. His router is still not powerful enough to decode this information on the fly but his trick to get around that is to effectively corrupt the incoming advertising data with a few bad bytes so they aren’t able to be displayed on any devices on the network. It’s an effective and unique solution, and one that Google hopefully won’t be able to patch anytime soon. There are some other ways to improve the miserable stock YouTube experience that we have seen as well, like bringing back the dislike button.

Thanks to [Jack] for the tip!

Visualizing Blocked Ads With The Pi Sense Hat

Pi-hole is an open source project to turn that Raspberry Pi collecting dust in your drawer into a whole-network ad blocking appliance. Not only does it stop ads from showing up on all your computers and mobile devices, it also keeps track of how many ads have been blocked and where they came from. Just in case you wanted to know how many thousands of ads you missed out on for a given time period.

While the graphs generated in the web interface of Pi-hole are slick and all, what if you just wanted a quick way of visualizing how effective your ad blocking system is? You’re not so much worried about the exact figures, you just want something to blink away on your desk and let you know all those ads are going to /dev/null. Enter the aptly named pi-hole-visualizer by [simianAstronaut].

With the addition of a Sense HAT to the Pi running the ad blocking, this Python script will generate an animated visualization that can be easily interpreted even from a distance. The primary display is a bar graph of DNS traffic, where the height and color of each column indicate relative activity within a specific time interval. A second screen shows a spiral graph which gives you an idea of what percentage of ads were blocked before they hit your devices.

An array of options can be given to the script from the command line; controlling both physical aspects of the display like orientation and LED brightness, as well the configurable parameters for the different available visualizations. As an added bonus, there’s also support for using the Sense HAT joystick to switch between modes interactively.

Turning the Raspberry Pi into an ad blocking appliance goes back to the olden days of the original Raspberry Pi, but it’s interesting to see how advanced the concept has become. Just remember, not all ads are bad.

Hackaday Prize Entry: Adblock For TV

Contact, the 1985 book by Carl Sagan, was significantly better than the movie. Five people went through the wormhole, three machines were made (in Russia, Wyoming, and a third on Hokkaido), Erbium did something, and the novelization provided much better worldbuilding. One of the more interesting characters in the book was H.R. Haddon, the megalomaniacal business man, made his first million designing a chip that would block advertisements on TV. The book strongly suggests this commercial-blocking chip was a purely analog device, a concept that would have been an amazing abuse of NTSC produced by a damn fine engineer.

Now, even though cord cutting is commonplace and streaming is taking over, there’s still commercials on Hulu. In a few months, I’ll have to pay $5 a month to watch Star Trek with commercials. There is obviously a market for ‘adblock for TV’, and that’s what [PixJuan] is doing for his Hackaday Prize entry.

[Juan]’s device is a basically an HDMI switch with a remote that’s pressed every time the ads start to show on a broadcast. This switch will change the input of the HDMI switch from a cable box to a Raspberry Pi and play a short video clip or something else that isn’t selling you crap. When the Raspi is done, the switch goes back over to the original input.

With a bit of computation in this adblock-for-TV device, there are a few more options for ad detection. The Raspberry Pi could build a database of when ads play and for how long, depending on the channel. This is a great project that has a lot of potential to use some interesting techniques like computer vision and machine learning for the goal of removing commercials before they start.

Real World AdBlock

Every day your eyeballs are assaulted by advertisements on your box of cereal, billboards, t-shirts, magazines, milk cartons, plastered on the side of buses, buildings, bananas, and written in the sky. [Reed], [Jonathan], [Tom], and [Alex] came up with a solution to this: a Brand Killer that censors all the advertisements and brands you see every minute of every day. It’s a real-world adblock that you can build right now.

The team’s system uses a custom head mounted display made from cardboard, goggles, a webcam, and a seven-inch display. The software for the system uses Python and OpenCV to monitor the images from the webcam, compares them against a list of brands and logos, and filters them out with an unobtrusive blur.

Right now the system just has a few brands and logos that include Dr. Pepper, Hershey’s, McDonalds, Facebook, Starbucks, and clear evidence this was built at UPenn, Wawa and Tastykake. In the video below, the detection and tracking of these various brands is very good. The system is also stereoscopic, meaning this is wearable all day, every day, without a loss of depth perception.

Continue reading “Real World AdBlock”

New Ads – Please Whitelist Hackaday On Adblock

adblock-plus-whitelist

If you’ve been watching very closely you may have noticed that our ads have changed. If you didn’t know we run ads, I’m asking you to consider whitelisting Hackaday.com in your advertisement blocking browser plugin.

The plan to transition to advertisements which are more targeted for our interests was mentioned back in July, when Hackaday was purchased by SupplyFrame,  I say ‘our’ interests because the companies who have signed up so far are ones with which I have personally done business when hacking my own projects. These include the manufacturers: Atmel, Microchip, NXP, and Texas Instruments as well as distributors: Arrow Electronics, Element 14, Mouser, and RS Components. The ads are in the exact same places as they have always been, at the same size, with the core belief that on-page advertising should be entirely unobtrusive. If you find the ads to be otherwise, please do let us know about it (screenshots are helpful!).

Hackaday highlights a steady stream of project features every single day. These are the best engineering-oriented hacks the web has to offer. There is some cost involved in do this, which we cover by including advertisements on our pages. Please don’t block the ads. If you haven’t been blocking, thank you! If you do use an Ad blocker, I certainly understand that you want to get away from ads that automatically play audio, flash annoying colors, or include inappropriate content. Our ads don’t do this. Please throw us a bone by adding our domain to your “whitelist”. This is very simple, and after the break I’ve included the instructions for doing so with Adblock Plus.

Continue reading “New Ads – Please Whitelist Hackaday On Adblock”

Turning A Raspi Into AdBlock

pi

There’s nothing quite as annoying as seeing bandwidth wasted on unimpressive flash animations, irrelevant ads, and animated GIFs. The bad news is these ads are the sole source of income for a lot of your favorite websites – Hackaday included. The good news is you can turn these ads off with a Raspberry Pi, a WiFi adapter, and a little bit of fun in the terminal.

This build creates a wireless access point with a WiFi adapter plugged in to a Raspberry Pi. With an Ethernet cable plugged in, this effectively turns the Raspi into a wireless router.

To configure the software to block ads, it’s a simple matter of installing dnsmasq from the command line and making sure all the ads on your favorite webpages time out. This means a fairly big hit on the performance of your new DIY router, but with the installation of Pixelserv you can host a 1-pixel transparent GIF image that replaces all the ads and renders them invisible.

It’s a great project if you don’t like watching ads on your PS3, XBox, tablet, or other non-PC Internetting device. If people stealing your wireless connection is a problem, it shouldn’t be hard to make every image upside down or blurry for those rogue WiFi pirates.