You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
anti-AD/README.md

81 lines
7.6 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# anti-AD
#### 致力于成为中文区命中率最高的广告过滤列表实现精确的广告屏蔽和隐私保护。anti-AD现已支持AdGuardHomednsmasqSurgePi-HoleClashsmartdnssing-box等网络组件。完全兼容常见的广告过滤工具所支持的各种广告过滤列表格式
使用anti-AD能够屏蔽广告域名能屏蔽电视盒子广告屏蔽app内置广告同时屏蔽了一些日志收集、大数据统计等涉及个人隐私信息的站点能够保护个人隐私不被偷偷上传。
本工具是通过域名解析层来屏蔽广告和保护隐私的其将各大著名的hostsad filter listsadblock list等的列表进行合并去重再进行一系列的抽象化例如主动剔除失效域名、easylist优化模糊匹配、增强的黑白名单机制等措施最终生成期望的高命中率列表。
## 快速使用(使用官网地址,速度更稳定)
| 文件 | raw | 官网地址 | 适用于 |
| -------------------------------- |:------------------: | ---------------- |--------------------------------------------- |
| `adblock-for-dnsmasq.conf` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/adblock-for-dnsmasq.conf) | [官网地址🚀](https://anti-ad.net/anti-ad-for-dnsmasq.conf) | dnsmasq及衍生版本 |
| `anti-ad-easylist.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt) | [官网地址🚀](https://anti-ad.net/easylist.txt) | AdGuardHomeDNS过滤 |
| `anti-ad-adguard.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-adguard.txt) | [官网地址🚀](https://anti-ad.net/adguard.txt) | AdGuard匹配整个URL的域名部分 |
| `anti-ad-domains.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-domains.txt) | [官网地址🚀](https://anti-ad.net/domains.txt) | Pi-Hole或其他工具[白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-list.txt) |
| `anti-ad-surge.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge.txt) | [官网地址🚀](https://anti-ad.net/surge.txt) | Surge或其他工具 |
| `anti-ad-surge2.txt` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt) | [官网地址🚀](https://anti-ad.net/surge2.txt) | Surge或其他工具DOMAIN-SET 格式性能更好 |
| `anti-ad-clash.yaml` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-clash.yaml) | [官网地址🚀](https://anti-ad.net/clash.yaml) | Clash Premium 类似工具([白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-clash.yaml) |
| `anti-ad-smartdns.conf` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf) | [官网地址🚀](https://anti-ad.net/anti-ad-for-smartdns.conf) | SmartDNS[白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-smartdns.txt) |
| `anti-ad-sing-box.srs` | [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-ad.github.io/master/docs/anti-ad-sing-box.srs) | [官网地址🚀](https://anti-ad.net/anti-ad-sing-box.srs) | sing-box二进制文件需`1.10.0-alpha.25`及以上版本) |
## 争议域名
一些域名可能与广告/跟踪有关,但部分情况下它们发挥着其他的作用,拦截它们可能会造成额外的问题。本项目对部分此类有争议的域名做了整理和简单说明,您可根据自己的需要自行添加额外规则放行或拦截相关域名。
[点此查看](./discretion/README.md)
欢迎 anti-AD 用户贡献和完善这部分内容。
## 版本历史
#### v4.5.2 (2022.12.15)
- 项目代码切换到PHP 8不完全兼容旧版本PHP
#### v4.5.1 (2021.05.31)
- 移动构建脚本到[另一个分支](https://github.com/privacy-protection-tools/anti-AD/tree/adlist-maker),让默认分支看起来更干净
- github Actions的针对性优化优化自动构建逻辑
- anti-AD仍然是一个完全开源的项目
- 没有了
#### v4.5.0 (2021.05.02)
- 重构工具`easylist-extend.php`优化提升3倍执行效率
- 修复一部分小bug
- 开始支持[AdGuardHome新的modifiers](https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#modifiers)语法(目前测试阶段adgh本身解析还有bug)
#### [更多版本演进历史>>>](https://github.com/privacy-protection-tools/anti-AD/blob/master/changelog.md)
## 一些补充的话
anti-AD在自我认知上始终是一个非主流的小众项目。此项目一直坚持每一行代码开源anti-AD过滤列表的所有规则均来自上游列表和网友提交的issues欢迎各界朋友审阅。在没有阅读代码或没有完全理解代码意图之前本项目以及作者不再接受任何无端的质疑、猜忌作者也不打算再浪费时间作出任何解释。
## 欢迎提issue
对于anti-AD大家伙儿有任何建议或者存在误杀bug其他错误各种意见 [请开issue](https://github.com/privacy-protection-tools/anti-AD/issues/new/choose)
加入QQ群更实时的交流716981535 <br>
![716981535](https://user-images.githubusercontent.com/1243610/73809320-de535780-480d-11ea-82f5-15d4c3ccb0c0.png)
## Special Thanks To
- [TG-Twilight/AWAvenue-Ads-Rule](https://github.com/TG-Twilight/AWAvenue-Ads-Rule) - 秋风广告规则,干掉所有无良广告 (来自[#897](https://github.com/privacy-protection-tools/anti-AD/issues/897))
- [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community) - Community managed domain list
- [malware-filter/urlhaus-filter](https://gitlab.com/malware-filter/urlhaus-filter) - Malicious URL blocklist,来自 [#858](https://github.com/privacy-protection-tools/anti-AD/issues/858)
- [AdguardTeam/AdguardFilters](https://github.com/AdguardTeam/AdguardFilters) - AdGuard Content Blocking Filters
- [fanboy-annoyance](https://easylist.to/easylist/fanboy-annoyance.txt) - 优秀的easylist列表
- [notracking/hosts-blocklists-scripts](https://github.com/notracking/hosts-blocklists-scripts) - 提供无效域名和无效hosts列表
- [Adblock Plus](https://adblockplus.org/) - 畅游清爽洁净的网络!
- [neoFelhz/neohosts](https://github.com/neoFelhz/neohosts) - 自由·负责·克制 去广告 Hosts 项目
- [vokins/yhosts](https://github.com/vokins/yhosts) - yhosts该源已停止维护
- [cjx82630/cjxlist](https://github.com/cjx82630/cjxlist) - Adblock Plus EasyList Lite与CJX's Annoyance List
- _[@rufengsuixing](https://github.com/rufengsuixing) 提出的jsDelivr加速过滤列表下载的建议_
- _[@xlighting2017](https://github.com/xlighting2017) 提供的[surge格式建议](https://github.com/privacy-protection-tools/anti-AD/issues/29)_
- [ACL4SSR/ACL4SSR](https://github.com/ACL4SSR/ACL4SSR) - 一些常见APP的广告 @[wchqybs](https://github.com/wchqybs) in [#79](https://github.com/privacy-protection-tools/anti-AD/issues/79)
- [ADgk.txt](https://github.com/banbendalao/ADgk) - 鸣谢 坂本dalao
- [jdlingyu/ad-wars](https://github.com/jdlingyu/ad-wars) - 只是 ad-wars 的帮助文档
- [hoshsadiq/adblock-nocoin-list](https://github.com/hoshsadiq/adblock-nocoin-list) - 恶意挖矿屏蔽列表
- [easylist.to](https://easylist.to/) - 感谢提供出色的easylist
- [ZeroDot1/CoinBlockerLists](https://gitlab.com/ZeroDot1/CoinBlockerLists) - 屏蔽恶意劫持挖矿
- [crazy-max/WindowsSpyBlocker](https://github.com/crazy-max/WindowsSpyBlocker) - Block spying and tracking on Windows