手头上还有个古早的raspberry pi 一代的B型,当时的热劲过去了后一直在储藏室里吃灰。
正好心血来潮装了pi-hole来拦截广告和追踪。也算是废物利用吧。
重新刷了SD里的系统,用puttySSH后按说明一步步装了pi-hole,更新了pi-hole list,添加了几个支持中国用户的广告过滤规则进去, 也算是借用现有资源,把adblock里的受欢迎的easylist,easylist china,fanboy-social内的网站信息规整了一下 (方法来源: https://wp.gxnas.com/1734.html)
curl -s -L https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt https://easylist-downloads.adblockplus.org/malwaredomains_full.txt https://easylist-downloads.adblockplus.org/fanboy-social.txt > adblock.unsorted sort -u adblock.unsorted | grep ^\|\|.*\^$ | grep -v \/ > adblock.sorted sed 's/[\|^]//g' < adblock.sorted > adblock.hosts rm adblock.unsorted adblock.sorted
效果不错👍
然后mi UI不愧其广告UI之称,各种广告追踪不断
相关资源:
- https://www.raspberrypi.org/downloads/raspbian/
- https://github.com/pi-hole/pi-hole/#one-step-automated-install
- https://wp.gxnas.com/1734.html