OpenSource-Hub
M

maza-ad-blocking

1.9k stars·Privacy Protection·SHA-256 checksum verified

Maza is a simple, native, and efficient local ad blocker using your system's hosts file. Runs on macOS, Linux, BSD, and WSL with just bash commands.

Smart Download

Visit Project Homepage

No installer available yet — head to the source repository

One command to block ads system-wide, lighter than Pi-hole.

Core Features

  • Block ads in all browsers and any installed app with one command
  • No browser extensions or additional software required
  • Automated daily updates of blocklists via cron
  • Custom ignore and custom domain lists supported
  • Dnsmasq integration for wildcard subdomain blocking

What It Can't Do

  • macOS users must install gnu-sed: brew install gnu-sed. 2. When using cron for auto-update, set PATH and TERM in crontab to avoid failures. 3. The hosts file does NOT support wildcard subdomains; use Dnsmasq if you need full subdomain blocking. 4. Critical domains like localhost are ignored by default to prevent system issues. 5. Some local development services may be affected; add them to the ignore list.

Use Cases

  • System-wide ad blocking on personal computers
  • Home network DNS filtering via Dnsmasq
  • Lightweight Pi-hole alternative without dedicated hardware

Maza is a lightweight local ad blocker that works by modifying the system's hosts file to block ad-serving domains. It requires no browser extensions or additional software—just bash. With a single command (`sudo maza start`), it immediately blocks ads across all browsers and installed apps. It supports automated daily updates of blocked domains via cron, customizable ignore/block lists, and an optional Dnsmasq integration for wildcard subdomain blocking. Maza is perfect for users who want a system-wide ad blocker without running a separate server like Pi-hole. It's open source and works on macOS, Linux, BSD, and Windows Subsystem for Linux.

Tags

ad-blockingprivacydnshostsbashsystem

Getting Started

1

Download installer

Click the button above to download the installer for your system

2

Install the software

Double-click the downloaded installer and follow the prompts

3

Step 1: Open terminal and run the install command: curl -o maza https://raw.githubusercontent.com/tanrax/maza-ad-blocking/master/maza && sudo rm -rf /usr/local/bin/maza && chmod +x maza && sudo mv maza /usr/local/bin

4

Step 2: (Optional but recommended) Backup your hosts file: sudo cp /etc/hosts /etc/hosts.backup

5

Step 3: Start blocking: sudo maza start

Install Guide
  1. Step 1: Open terminal and run the install command: curl -o maza https://raw.githubusercontent.com/tanrax/maza-ad-blocking/master/maza && sudo rm -rf /usr/local/bin/maza && chmod +x maza && sudo mv maza /usr/local/bin
  2. Step 2: (Optional but recommended) Backup your hosts file: sudo cp /etc/hosts /etc/hosts.backup
  3. Step 3: Start blocking: sudo maza start
File Integrity

Checksum not available

This project has not published a SHA-256 checksum on its GitHub Release page

SHA256 Checksum

No checksum available

Download directly from GitHub Releases and verify file integrity yourself

All SHA-256 checksums on this platform are extracted from the project's official GitHub Release page, without any modification. You can independently verify them on the GitHub Releases page.

Open Source Transparency

View GitHub Source
Environment Guide

Uninstall Info

Run 'sudo rm /usr/local/bin/maza && sudo rm -r /root/.config/maza' to fully uninstall.

No Extra Dependencies

Ready to use after download. No additional runtime required.

Project Info
LicenseMIT
Last Updated2026-06-25 13:15:36
GitHub Repository

Having issues? Check the FAQ below

5 FAQs

Similar Projects