Simple, native and efficient local advertising blocker. Compatible with OSX and Linux.
sudo maza start
sudo maza stop
brew install gnu-sed
Then you do this.
curl -o maza https://raw.githubusercontent.com/tanrax/maza-ad-blocking/master/maza && chmod +x maza && sudo mv maza /usr/local/bin
sudo rm /usr/local/bin/maza && sudo rm -r ~/.maza
Unfortunately the hosts file does not support sub-domains (wildcards), which is necessary to correctly filter all DNS. You will need to install locally a server for that purpose, Maza supports the Dnsmasq format. Here's an example for OSX.
brew install dnsmasq
Edit the file.
Add the following lines.
conf-file=(your user path)/.maza/dnsmasq.conf
sudo brew services stop dnsmasq sudo brew services start dnsmasq
Delete the list of OSX DNS servers and add the 3 addresses. The first one will be your local server, and the other 2 belong to OpenDNS, which you can use any other.
127.0.0.1 184.108.40.206 220.127.116.11
Refresh your DNS cache
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Add in confiigure file:
no-resolv server=18.104.22.168 server=22.214.171.124
If you want all your
.localhost domains, for example, point to localhost add in confiigure file: