URL filtering with Pi-hole
Avoiding Legal Worries
Unlike a proxy filter, filtering using Pi-hole does not directly interfere with your users' data packets. Despite this, Pi-hole logs the systems' DNS calls. An administrator could use the Pi-hole logs and the DHCP leases of the underlying dnsmasq to determine exactly when a specific user issued a specific DNS query. The request can be traced back to the workstation via the MAC address. Short lease times in the DHCP segment help to make this more difficult. For example, if you specify a time of four hours as the lease time, clients need to request an IP address from the DHCP server every four hours. The client usually tries to renew and reuse the already existing IP, but if users turn off their workstations overnight, there is a high chance of them receiving a different address the next morning. The administrator can reliably trace a request back to the source for the time of an IP lease.
Finishing Up in the Browser
Thanks to DNS-based Pi-hole, you have already removed a large part of the unwanted content from the data stream. However, some content remains if it can hide from the filter or it is actually included in the original source URL. The only thing that helps to get rid of the last remaining trackers and ads is a browser plug-in. From the mass of available add-ons, we picked two at this point: Ghostery and AdNauseam.
Ghostery is one of the most popular and reliable ad filters. Besides the plug-in for Chrome and Firefox, Ghostery is also available as a ready-to-use browser, based on the Chrome source files. This also means that Ghostery runs on smartphones and tablets. It makes a big difference whether you watch YouTube videos on your phone in the unfiltered app or via the regular YouTube website within the filtered Ghostery browser for Android or iOS.
AdNauseam adds a special feature to the plain-vanilla filter function. Although the filter does not display the embedded banners in the browser, the plug-in clicks on all advertising links in the background. Advertisers seek to present personally tailored ads to users. This means that advertisers can create a profile of a user's browsing behavior by analyzing the kind of ads that users click on. AdNauseam waters down your profile: If you seem to be interested in everything from sports betting to laxatives, the advertiser can't create a personalized profile at all.
This filter is recommended if you have already created profiles for your browser and you are repeatedly confronted with the same advertising topics. However, the tool is controversial, because advertisers often have to pay for banner clicks – whereas you as a user then do not get to see the paid content. Google has therefore removed AdNauseam from the Chrome Store and you need to set up the plug-in manually as a Chrome user. The automatic installer is still available for Firefox.
Conclusions
If you are fed up with the flood of ads on the Internet and do not want to be tracked, the combination of a DNS black hole and a browser plug-in will be a big help. As a side effect, tools such as Pi-hole can also fend off phishing attacks, as many of the known phishing URLs are already blacklisted. Ghostery, as an established add-on, then also removes the remnants of things that Pi-hole cannot block.
Infos
- Pi-hole: https://pi-hole.net
- GitHub Pi-hole filter lists: https://github.com/topics/pihole-ads-list
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.