This tutorial shows how to block ads, trackers, and malware domains system-wide in Ubuntu and other Linux desktop using hBlock.
hBlock is a free open-source script that collects a large list of domains that serve ads, tracking scripts and malware from multiple sources. It blocks them by mapping all those domain names to 0.0.0.0 using hosts
file, thus it works system-wide.