大过年撸了个 bash 脚本,拦截恶意/广告网站的列表

2016-02-09 11:41:45 +08:00
 GNiux
https://github.com/mdrights/my-notes/blob/master/MyScripts/get-hostlist-cn.sh

https://github.com/mdrights/my-notes/blob/master/MyScripts/get-ad-domain-dnsmasq.sh

新手,多多指教!

网站列表来源:
http://www.mwsl.org

http://pgl.yoyo.org/adservers/serverlist.php

——表示感谢。

另外 DShield.org 也定期更新一个列表 (好几个天朝网段,哈哈)

https://www.dshield.org/block.txt

Usage: 会生成符合 Dnsmasq 格式的.conf 文件 放于 /erc/dnsmasq.d/。 Dnsmasq 就把列表里的网址自动导向到本地。

适用环境:局域网路由器 /网关的 DNS server. 我这里是 Pi 充当网关。 2333
3528 次点击
所在节点    分享创造
4 条回复
techmoe
2016-02-09 11:43:22 +08:00
ADBlock 路过
GNiux
2016-02-09 12:04:31 +08:00
coolloves
2016-02-09 12:28:40 +08:00
马克,春节快乐
v1024
2016-02-09 12:59:06 +08:00
爱你楼主

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/255892

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX