内容简介:Simple, native and efficient local advertising blocker. Compatible with OSX and Linux.
Maza ad blocking - Like Pi-hole but local and using your operating system
Simple, native and efficient local advertising blocker. Compatible with OSX and Linux.
- You don't have to install any browser extensions or applications, you just use the tools of your operating system.
- You update the list of DNS to be blocked with a single stroke.
- Opensource.
- Just bash.
:runner:Run
:satellite:
Update database
maza update
:hammer:
Start
sudo maza start
Stop
sudo maza stop
⚖️
Status
maza status
⚙️
Install
:eyes:
Requirements
- bash 4.0 or higher
- curl
- Only OSX users, gsed :
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
:hocho:
Uninstall
sudo rm /usr/local/bin/maza && sudo rm -r ~/.maza
DNSMASQ
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.
1 Install
brew install dnsmasq
2 Configure
Edit the file.
/usr/local/etc/dnsmasq.conf
Add the following lines.
conf-file=(your user path)/.maza/dnsmasq.conf
Start DNSMASQ.
sudo brew services stop dnsmasq sudo brew services start dnsmasq
3 Tell your OS to use your DNS server
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 208.67.222.222 208.67.220.220
Refresh your DNS cache
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Bonus: dnsmasq is in charge of solving all DNS
Add in confiigure file: /usr/local/etc/dnsmasq.conf
no-resolv server=208.67.222.222 server=208.67.220.220
Bonus: dnsmasq have test domains
If you want all your .localhost
domains, for example, point to localhost add in confiigure file: /usr/local/etc/dnsmasq.conf
address=/.localhost/127.0.0.1
:warning:
CAUTION
/etc/hosts
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
可计算性和计算复杂性
朱一清 / 国防工业出版社 / 2006-4 / 18.0
本书深入浅出地介绍了研究可计算性的四个主要模型以及四个模型彼此之间的关系:介绍了计算复杂性的基本概念和重要的研究方法与一些研究成果。内容涉及递归函数、图灵机、λ演算、马尔可夫算法、计算复杂度的分类、NP完全理论、非一致复杂性等。分述于十章,书中附有习题。 本书可作为广大有志于突破计算复杂性研究僵局——“P=NP?”的科技工作者,计算机科学和元计算机科学工作者,数学和元数学工作者以及大......一起来看看 《可计算性和计算复杂性》 这本书的介绍吧!