talira

Maza ad blocking

Simple, native and efficient local ad blocker. Only Bash.

open sourceApache-2.0self-hostablefree

Maza is a local ad blocker written in Bash, like Pi-hole but running on your own computer with your operating system's tools: sudo maza start adds a blocklist of ad and tracker domains to the hosts file, so every browser and app on the machine stops reaching them without extensions. maza update refreshes the list (Peter Lowe's by default, or any list such as Steven Black's), and you can add your own domains, ignore others and update automatically. For wildcard blocking of subdomains it can feed Dnsmasq, and an all-in-one Docker image with Alpine and Dnsmasq makes it the DNS server for a whole network, refreshing its list daily. It runs on macOS, Linux, BSD and WSL and is Apache-2.0.

Problems it solves

  • block ads and trackers in every app on my laptop without a browser extension
  • Pi-hole style blocking on my own computer without running a server
  • update my hosts file blocklist with one command
  • network-wide DNS ad blocking from a small Docker container
  • block ads on macOS or Linux with just a shell script
  • block whole subdomains of ad networks with Dnsmasq

Features

  • start, stop, status and update commands
  • blocks ad domains for every browser and application through the hosts file
  • default Peter Lowe list or any custom list such as Steven Black's
  • custom domains to block and an ignore list
  • automatic list updates
  • Dnsmasq support for wildcard subdomain blocking
  • all-in-one Docker image with Alpine and Dnsmasq as a network DNS server
  • macOS, Linux, BSD and WSL

Limitations

  • the hosts file can't block subdomains by wildcard; that needs Dnsmasq1

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Maza ad blocking does.

  1. Pi-hole Network-wide ad blocking
  2. AdGuard Home Network-wide ads & trackers blocking DNS server
  3. Blocky Fast and lightweight DNS proxy as ad-blocker for local network with many features
  4. Numa Portable DNS resolver: ad blocking, local .numa names and private upstream queries
  5. Technitium DNS Server Self host a DNS server for privacy & security

Compare Maza ad blocking with the top 3