← 返回命令列表

Linux command

maza 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Enable ad blocking

maza start

Disable ad blocking

maza stop

Update blocklist

maza update

Show status

maza status

说明

maza is a local ad blocker that works by modifying /etc/hosts. It redirects advertising and tracking domains to 127.0.0.1, preventing connections. The tool downloads blocklists from sources like Steven Black's hosts project, which aggregates multiple sources. Updates fetch the latest lists. Start mode backs up the existing hosts file and appends blocking entries. Stop mode restores the original hosts file, removing all blocks. This approach works system-wide, blocking ads in all applications, not just browsers. It's lightweight with no daemon or browser extension required. DNS caching may delay changes taking effect. Flushing the DNS cache or restarting network services speeds up propagation.

参数

start
Enable ad blocking.
stop
Disable ad blocking.
update
Update the blocklist.
status
Show current status.

FAQ

What is the maza command used for?

maza is a local ad blocker that works by modifying /etc/hosts. It redirects advertising and tracking domains to 127.0.0.1, preventing connections. The tool downloads blocklists from sources like Steven Black's hosts project, which aggregates multiple sources. Updates fetch the latest lists. Start mode backs up the existing hosts file and appends blocking entries. Stop mode restores the original hosts file, removing all blocks. This approach works system-wide, blocking ads in all applications, not just browsers. It's lightweight with no daemon or browser extension required. DNS caching may delay changes taking effect. Flushing the DNS cache or restarting network services speeds up propagation.

How do I run a basic maza example?

Run `maza start` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does start do in maza?

Enable ad blocking.