加速下载anti-AD · GitHub Release · 反代镜像加速

本区块自动同步 anti-AD 的官方 GitHub Release,并为每个文件预生成 4 个反代镜像加速下载通道。 国内访问 GitHub 慢、下载断、连接超时时,挑一个反代列点开即可,无需手动拼接镜像 URL。镜像只改变访问路径,文件内容、版本号、SHA 校验与 GitHub 官方一致。

暂无公开 Release,请到 privacy-protection-tools/anti-AD Releases 页 查看后续发布。

TL;DR

anti-AD 是中文社区维护的开源去广告规则集(GPL-3.0,16K+ stars)。覆盖:中文 App + 浏览器 + 跟踪域名。输出格式:Clash YAML / sing-box JSON / AdGuard txt / hosts。用法:客户端添加 Provider URL → REJECT 匹配域名。

anti-AD 是中文用户「省心去广告」的最佳选择。本文按定位、订阅 URL、各客户端用法、配合使用四块讲清楚。

anti-AD 的订阅 URL

官方域名 anti-ad.net 提供多种格式:

格式URL用途
Clash YAMLhttps://anti-ad.net/clash.yamlClash / Mihomo Provider
sing-box JSONhttps://anti-ad.net/sing-box.jsonsing-box rule-set
AdGuardhttps://anti-ad.net/anti-ad-for-adguardhome.txtAdGuard Home 过滤器
AdBlock Plushttps://anti-ad.net/easylist.txtAdBlock 浏览器扩展
hostshttps://anti-ad.net/anti-ad-hosts.txt系统 hosts
DnsMasqhttps://anti-ad.net/anti-ad-for-dnsmasq.confDnsMasq / OpenWrt
SmartDNShttps://anti-ad.net/anti-ad-for-smartdns.confSmartDNS
Surgehttps://anti-ad.net/surge.txtSurge 5
Quantumult Xhttps://anti-ad.net/quantumultx.txtQuantumult X

国内访问慢,备用 CDN:https://anti-ad.adtidy.org / https://gh.llkk.cc/https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad.txt

Clash / Mihomo 用法

Provider 方式(推荐)

rule-providers:
  anti-ad:
    type: http
    behavior: domain
    url: https://anti-ad.net/clash.yaml
    path: ./ruleset/anti-ad.yaml
    interval: 86400

rules:
  - RULE-SET,anti-ad,REJECT
  - GEOIP,CN,DIRECT
  - MATCH,Proxy

直接订阅(简易)

订阅自带 anti-AD 规则的机场订阅模板(很多机场配置默认包含)。

sing-box 用法

{
  "route": {
    "rule_set": [
      {
        "tag": "anti-ad",
        "type": "remote",
        "format": "binary",
        "url": "https://anti-ad.net/sing-box.json",
        "update_interval": "24h0m0s"
      }
    ],
    "rules": [
      { "rule_set": "anti-ad", "outbound": "block" }
    ]
  }
}

sing-box / Karing / Hiddify Next 自动识别。

AdGuard Home 用法

AdGuard Home Web 面板:

  1. 过滤器 → DNS 阻止列表 → 添加阻止列表
  2. 名称:anti-AD
  3. URL:https://anti-ad.net/anti-ad-for-adguardhome.txt
  4. 启用

DNS 层阻断,对整网所有设备生效。

SmartDNS 用法

SmartDNS 配置:

domain-set -name anti-ad -file /etc/smartdns/anti-ad.conf
domain-rules /domain-set:anti-ad/ -nameserver block

下载规则文件:

wget -O /etc/smartdns/anti-ad.conf https://anti-ad.net/anti-ad-for-smartdns.conf

hosts 用法

sudo wget -O /etc/hosts.anti-ad https://anti-ad.net/anti-ad-hosts.txt
sudo cat /etc/hosts /etc/hosts.anti-ad > /etc/hosts.merged
sudo mv /etc/hosts.merged /etc/hosts

或定时任务每天更新。

配合 Loyalsoldier 规则集

anti-AD 偏「去广告」;Loyalsoldier 偏「分流」。可同时启用:

rule-providers:
  loyalsoldier-reject:
    type: http
    url: https://raw.githubusercontent.com/Loyalsoldier/clash-rules/release/reject.txt
    behavior: domain

  anti-ad:
    type: http
    url: https://anti-ad.net/clash.yaml
    behavior: domain

rules:
  - RULE-SET,loyalsoldier-reject,REJECT
  - RULE-SET,anti-ad,REJECT
  - ...

双重保险。

常见问题

某个 App 加载失败

加白名单:

rules:
  - DOMAIN-SUFFIX,that-app.com,DIRECT  # 白
  - RULE-SET,anti-ad,REJECT

DIRECT 在 RULE-SET 前匹配,优先生效。

规则集太大导致客户端慢

  • 用 binary 格式(sing-box rule-set 默认)比 text 快
  • 关闭不需要的子列表

国内访问 anti-ad.net 慢

  • 用反代镜像:https://gh.llkk.cc/https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/...
  • 或本地缓存:下载后扔到自己的 web 服务器

来源与最后核对

本文最后实际验证日期:2026-05-20。