爱意满满的作品展示区。
GNiux

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

  •  
  •   GNiux · Feb 9, 2016 via iPhone · 4667 views
    This topic created in 3920 days ago, the information mentioned may be changed or developed.
    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
    4 replies  •  2016-02-09 12:59:06 +08:00
    techmoe
    techmoe
    Feb 9, 2016 via Android
    1
    ADBlock 路过
    GNiux
    GNiux
    OP
    Feb 9, 2016 via iPhone
    2
    sparkssssssss
    sparkssssssss
    Feb 9, 2016 via iPhone❤️1
    3
    马克,春节快乐
    v1024
    v1024
    Feb 9, 2016 via iPhone❤️1
    4
    爱你楼主
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1661 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 23:37 · PVG 07:37 · LAX 15:37 · JFK 18:37
    ♥ Do have faith in what you're doing.