Skip to content
This repository was archived by the owner on Jul 8, 2026. It is now read-only.
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5,523 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

本项目的 Workflow 曾触发 GitHub Actions 的滥用检测,导致项目维护者的 GitHub 账号被封禁,因此本项目停止维护。
如需继续使用,建议使用 Self-hosted Runner 运行 Workflow。

Caution

The workflow in this project previously triggered GitHub Actions' abuse detection, resulting in the suspension of the maintainer's GitHub account. As a result, this project is no longer maintained.
If you wish to continue using it, it is recommended to run the workflow on a self-hosted runner.

AdBlock DNS Filters Modified

217heidai/adblockfilters 去广告合并规则增强版,每天更新一次。

指标 数值
上次更新(北京时间) 2026/06/09 15:51:50 (UTC+08:00)
上游规则总数(去重前) 4346504
上游规则总数(去重后) 3034864
上游规则去重率 30.18%
有效规则数量(可解析) 1987297
有效规则占比(检测域名) 80.41%
中国规则数(Lite) 13095
中国规则占比(Lite/成品) 4.54%

说明

  1. 定时从上游各规则源获取更新,合并去重。
  2. 工作流程:拉取上游规则 → 解析提取域名/规则 → 使用本地 SmartDNS 验证连通性并剔除失效域名(上游规则中存在大量无法解析的域名)→ 生成各类成品规则与统计。
  3. 上游规则源增删方法:维护 README 中“上游规则源”表格的规则名/类型/链接,工作流会按表格自动拉取并参与生成。
  4. 本地新增拦截/白名单:在 sources/local/myblock.txt 添加自定义拦截域名/规则;在 sources/local/white2.txt 添加放行域名或 @@||domain^ 形式白名单规则,支持 +.example.com(主域+子域)/*.example.com(仅子域)语法,工作流会自动合并生效。
  5. 本项目仅对上游规则进行合并、去重、去除无效域名,不做任何修改。如发现误拦截情况,可在 sources/local/white2.txt 中自行添加白名单(支持 +.example.com/*.example.com 语法),或临时添加放行规则(如 @@||www.example.com^$important),并向上游规则反馈。

性能说明:实测在 J4125 或同级别性能的 x86 主机上,百万级规则规模对 dnsmasq/AdGuard Home 的解析耗时影响不超过 1ms,可放心使用。

相比原版 adblockfilters 的改进与新增

  1. 改进了处理逻辑,缩短工作流运行时间。
  2. 改进了中国规则和无效规则的处理流程,现在每次生成规则前均会对这两类规则进行验证,不再使用历史数据。
  3. 白名单自动同步上游仓库,并支持 sources/local/white2.txt 本地补充合并。
  4. 域名提取与规则解析更完善,覆盖更多 filter/dns/host 规则格式,减少漏提取。
  5. 新增/独有规则源(相对上游仓库,详见下表):
点击展开/收起新增与独有规则源列表
  • AdGuard Annoyances
  • AdGuard Tracking Protection
  • HaGeZi's Apple Tracker Blocklist
  • HaGeZi's Badware Hoster Blocklist
  • HaGeZi's Gambling Blocklist
  • HaGeZi's OPPO & Realme Tracker Blocklist
  • HaGeZi's Samsung Tracker Blocklist
  • HaGeZi's Threat Intelligence Feeds
  • HaGeZi's Vivo Tracker Blocklist
  • HaGeZi's Windows/Office Tracker Blocklist
  • HaGeZi's Xiaomi Tracker Blocklist
  • HageziMultiPro
  • Hblock
  • Malicious URL Blocklist
  • OISD Big
  • Online Malicious URL Blocklist
  • PeterLowe
  • Phishing URL Blocklist
  • Scam Blocklist
  • SmartTV
  • Stalkerware
  • anti-AD
  • lingeringsound adblock_auto
  • uBlock Ads
  • uBlock Badware risks
  • uBlock Privacy

订阅链接

  1. 规则x’为规则x的 Lite 版,仅针对国内域名拦截,体积较小(如添加完整规则报错数量限制,请尝试 Lite 规则)
  2. 默认使用 testingcf.jsdelivr.net CDN,加速大文件会自动切换至 github.boki.moe
  3. AdGuard 等浏览器插件使用规则1 + 规则2(规则2为规则1的补充,仅适用浏览器插件)
规则 原始链接 加速链接 文件体积(MB) 规则数量 适配说明
规则1 原始链接 加速链接 32.60 1627650 AdGuard、AdGuard Home 等
规则1' 原始链接 加速链接 0.72 39272 AdGuard、AdGuard Home 等
规则2 原始链接 加速链接 14.30 288411 AdGuard 等
规则2' 原始链接 加速链接 0.60 13095 AdGuard 等
规则3 原始链接 加速链接 27.94 1627495 InviZible Pro、personalDNSfilter
规则3' 原始链接 加速链接 0.61 39226 InviZible Pro、personalDNSfilter
规则4 原始链接 加速链接 40.36 1627495 DNSMasq conf
规则4' 原始链接 加速链接 0.91 39226 DNSMasq conf
规则5 原始链接 加速链接 45.02 1627650 SmartDNS
规则5' 原始链接 加速链接 1.02 39272 SmartDNS
规则6 原始链接 加速链接 68.29 1627496 Shadowrocket
规则6' 原始链接 加速链接 1.58 39227 Shadowrocket
规则7 原始链接 加速链接 57.43 1627495 QuantumultX
规则7' 原始链接 加速链接 1.32 39226 QuantumultX
规则8 原始链接 加速链接 40.36 1627495 Clash Meta(Mihomo) yaml
规则8' 原始链接 加速链接 0.91 39226 Clash Meta(Mihomo) yaml
规则9 原始链接 加速链接 11.05 1627495 Clash Meta(Mihomo) mrs
规则9' 原始链接 加速链接 0.24 39226 Clash Meta(Mihomo) mrs
规则10 原始链接 加速链接 40.36 1627509 Hosts
规则10' 原始链接 加速链接 0.91 39240 Hosts
规则11 原始链接 加速链接 45.01 1627495 sing-box 1.12.x json
规则11' 原始链接 加速链接 1.02 39226 sing-box 1.12.x json
规则12 原始链接 加速链接 9.68 1627495 sing-box 1.12.x srs
规则12' 原始链接 加速链接 0.20 39226 sing-box 1.12.x srs
规则13 原始链接 加速链接 49.67 1627495 Loon
规则13' 原始链接 加速链接 1.13 39226 Loon
规则14 原始链接 加速链接 29.49 1627495 Surge
规则14' 原始链接 加速链接 0.65 39226 Surge
规则15 原始链接 加速链接 35.70 1627495 MosDNS v5
规则15' 原始链接 加速链接 0.80 39226 MosDNS v5
规则16 原始链接 加速链接 38.80 1627495 Surge RULE-SET
规则16' 原始链接 加速链接 0.87 39226 Surge RULE-SET
规则17 原始链接 加速链接 45.01 1627495 Clash Classical yaml
规则17' 原始链接 加速链接 1.02 39226 Clash Classical yaml
规则18 原始链接 加速链接 94.99 1801182 RouterOS
规则18' 原始链接 加速链接 4.02 78452 RouterOS
规则19 原始链接 加速链接 72.95 3254992 RouterOS AdList
规则19' 原始链接 加速链接 1.63 78454 RouterOS AdList
规则20 原始链接 加速链接 40.36 1627495 DNSMasq addn-hosts
规则20' 原始链接 加速链接 0.91 39226 DNSMasq addn-hosts
规则21 原始链接 加速链接 41.91 1627495 DNSMasq servers
规则21' 原始链接 加速链接 0.95 39226 DNSMasq servers

上游规则源

  1. 感谢各位广告过滤规则维护大佬们的辛苦付出。
规则 类型 原始链接 加速链接 规则数量 更新日期
AdGuard Base filter filter 原始链接 加速链接 160065 2026/06/09
AdGuard Chinese filter filter 原始链接 加速链接 23457 2026/06/09
AdGuard Mobile Ads filter filter 原始链接 加速链接 1061 2026/06/09
AdGuard DNS filter dns 原始链接 加速链接 158488 2026/06/09
AdRules DNS List dns 原始链接 加速链接 176582 2026/06/09
CJX's Annoyance List filter 原始链接 加速链接 1861 2026/03/11
EasyList filter 原始链接 加速链接 81226 2026/06/09
EasyList China filter 原始链接 加速链接 19563 2026/06/09
EasyPrivacy filter 原始链接 加速链接 53906 2026/06/09
xinggsf mv filter 原始链接 加速链接 135 2025/12/25
jiekouAD filter 原始链接 加速链接 5878 2026/06/08
AWAvenue Ads Rule dns 原始链接 加速链接 919 2026/05/25
DNS-Blocklists Light dns 原始链接 加速链接 58425 2026/06/09
Hblock dns 原始链接 加速链接 425891 2026/06/09
OISD Basic dns 原始链接 加速链接 59506 2026/06/09
StevenBlack hosts host 原始链接 加速链接 87773 2026/06/08
Pollock hosts host 原始链接 加速链接 13093 2026/06/09
anti-AD filter 原始链接 加速链接 99882 2026/06/09
Phishing URL Blocklist filter 原始链接 加速链接 31286 2026/06/09
Malicious URL Blocklist filter 原始链接 加速链接 16537 2026/06/09
Online Malicious URL Blocklist filter 原始链接 加速链接 1901 2026/06/09
PeterLowe filter 原始链接 加速链接 3515 2026/06/07
SmartTV filter 原始链接 加速链接 168 2026/04/18
HageziMultiPro filter 原始链接 加速链接 200116 2026/06/09
HaGeZi's Apple Tracker Blocklist filter 原始链接 加速链接 113 2026/04/23
HaGeZi's Badware Hoster Blocklist filter 原始链接 加速链接 935 2026/06/08
HaGeZi's Windows/Office Tracker Blocklist filter 原始链接 加速链接 397 2026/06/08
HaGeZi's Xiaomi Tracker Blocklist filter 原始链接 加速链接 356 2026/06/03
HaGeZi's Vivo Tracker Blocklist filter 原始链接 加速链接 243 2026/06/06
HaGeZi's Samsung Tracker Blocklist filter 原始链接 加速链接 206 2026/05/13
HaGeZi's OPPO & Realme Tracker Blocklist filter 原始链接 加速链接 474 2026/05/25
HaGeZi's Gambling Blocklist filter 原始链接 加速链接 231336 2026/06/09
HaGeZi's Threat Intelligence Feeds filter 原始链接 加速链接 1532131 2026/06/09
uBlock Badware risks filter 原始链接 加速链接 3024 2026/06/09
OISD Big dns 原始链接 加速链接 460293 2026/06/09
Stalkerware host 原始链接 加速链接 984 2026/04/11
Scam Blocklist filter 原始链接 加速链接 965 2026/06/09
uBlock Ads filter 原始链接 加速链接 8994 2026/06/08
uBlock Privacy filter 原始链接 加速链接 2679 2026/06/09
AdGuard Tracking Protection filter 原始链接 加速链接 199269 2026/06/09
AdGuard Annoyances filter 原始链接 加速链接 66950 2026/06/09
lingeringsound adblock_auto filter 原始链接 加速链接 252059 2026/06/09

Star History

Star History Chart

About

adblockfilters 广告过滤规则的增强版,大幅改进了规则处理流程和逻辑,重构仓库文件布局,增加了更多的上游规则和统计信息,有效治疗规则数量焦虑症。规则每天更新一次。

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages