# Maza ad blocking

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

Source: https://talira.ai/catalog/maza-ad-blocking-b2jf3y0w
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [networking / dns / ad blocking](https://talira.ai/categories/networking/dns/ad-blocking)
- Platforms: macos, linux, freebsd, windows, docker, cli[^1]
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Backed by: [Andros Fenollosa](https://talira.ai/orgs/andros-fenollosa.md)
- Creator: Andros Fenollosa

Maza is a local ad blocker written in Bash, like [Pi-hole](https://talira.ai/catalog/pi-hole-gfmhzeth.md) 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.

## Links

- Website: https://maza-ad-blocking.andros.dev/
- GitHub: https://github.com/tanrax/maza-ad-blocking

## 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 Dnsmasq[^1]

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.52 out of 1.
Signals: maintenance 0.62, adoption 0.65, momentum 0.41, community 0.36, backing 0.50, extensibility 0.20.

- last commit 6 days ago
- 3 commits in the last 90 days
- 1.9k GitHub stars
- 7 contributors
- accepts sponsorship (Github, Ko Fi)
- backed by Andros Fenollosa
- created by Andros Fenollosa

## Alternatives

- [Pi-hole](https://talira.ai/catalog/pi-hole-gfmhzeth.md): Network-wide ad blocking
- [AdGuard Home](https://talira.ai/catalog/adguard-home-d4j06nys.md): Network-wide ads & trackers blocking DNS server
- [Blocky](https://talira.ai/catalog/blocky-bb1b66yp.md): Fast and lightweight DNS proxy as ad-blocker for local network with many features
- [Numa](https://talira.ai/catalog/numa-xmxe2kzd.md): Portable DNS resolver: ad blocking, local .numa names and private upstream queries
- [Technitium DNS Server](https://talira.ai/catalog/technitium-dns-server-d3gqttvz.md): Self host a DNS server for privacy & security

## Sources

[^1]: https://github.com/tanrax/maza-ad-blocking/blob/master/README.md (checked 23 Nov 2026)
[^2]: https://github.com/tanrax/maza-ad-blocking/blob/master/LICENSE (checked 23 Nov 2026)
