{"id":15148414,"url":"https://github.com/privacy-protection-tools/anti-ad","last_synced_at":"2025-05-12T15:19:33.316Z","repository":{"id":37952651,"uuid":"44733816","full_name":"privacy-protection-tools/anti-AD","owner":"privacy-protection-tools","description":"致力于成为中文区命中率最高的广告过滤列表，实现精确的广告屏蔽和隐私保护。anti-AD 现已支持 AdGuardHome，dnsmasq，Surge，Pi-Hole，Clash, mihomo，smartdns，sing-box 等网络组件。完全兼容常见的广告过滤工具所支持的各种广告过滤列表格式","archived":false,"fork":false,"pushed_at":"2025-05-10T18:41:51.000Z","size":1288203,"stargazers_count":9244,"open_issues_count":0,"forks_count":759,"subscribers_count":98,"default_branch":"master","last_synced_at":"2025-05-12T15:19:15.676Z","etag":null,"topics":["adblock","adguardhome","dnsmasq","easylist","neohosts","php","pi-hole","surge"],"latest_commit_sha":null,"homepage":"https://anti-ad.net","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/privacy-protection-tools.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-10-22T08:59:28.000Z","updated_at":"2025-05-12T11:39:42.000Z","dependencies_parsed_at":"2024-08-28T20:15:37.050Z","dependency_job_id":"a95b0e5d-cefd-47ec-a178-f20d7c5acc42","html_url":"https://github.com/privacy-protection-tools/anti-AD","commit_stats":{"total_commits":1807,"total_committers":8,"mean_commits":225.875,"dds":0.5605976757055894,"last_synced_commit":"cc7808586f614c93b706ed0c52ca223e72767319"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privacy-protection-tools%2Fanti-AD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privacy-protection-tools%2Fanti-AD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privacy-protection-tools%2Fanti-AD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/privacy-protection-tools%2Fanti-AD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/privacy-protection-tools","download_url":"https://codeload.github.com/privacy-protection-tools/anti-AD/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253763962,"owners_count":21960484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adblock","adguardhome","dnsmasq","easylist","neohosts","php","pi-hole","surge"],"created_at":"2024-09-26T13:03:38.264Z","updated_at":"2025-05-12T15:19:33.264Z","avatar_url":"https://github.com/privacy-protection-tools.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# anti-AD\n\n#### 致力于成为中文区命中率最高的广告过滤列表，实现精确的广告屏蔽和隐私保护。anti-AD 现已支持 AdGuardHome，dnsmasq，Surge，Pi-Hole，Clash, mihomo，smartdns，sing-box 等网络组件。完全兼容常见的广告过滤工具所支持的各种广告过滤列表格式\n\n使用 anti-AD 能够屏蔽广告域名，能屏蔽电视盒子广告，屏蔽 App 内置广告，同时屏蔽了一些日志收集、大数据统计等涉及个人隐私信息的站点，能够保护个人隐私不被偷偷上传。\n\n本工具是通过域名解析层来屏蔽广告和保护隐私的，其将各大著名的 hosts，ad filter lists，adblock list 等列表进行合并去重，再进行一系列的抽象化，例如主动剔除失效域名、easylist 优化模糊匹配、增强的黑白名单机制等措施，最终生成期望的高命中率列表。\n\n## 快速使用(使用官网地址，速度更稳定)\n\n| 文件 \t| raw \t| 官网地址 \t| 适用于 \t|\n| --------------------------------\t|:------------------:\t| ----------------\t|---------------------------------------------\t|\n| `adblock-for-dnsmasq.conf` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/adblock-for-dnsmasq.conf) \t| [官网地址🚀](https://anti-ad.net/anti-ad-for-dnsmasq.conf) \t| dnsmasq及衍生版本 \t|\n| `anti-ad-easylist.txt` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt) \t| [官网地址🚀](https://anti-ad.net/easylist.txt)\t| AdGuardHome（DNS过滤） \t|\n| `anti-ad-adguard.txt` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-adguard.txt) \t| [官网地址🚀](https://anti-ad.net/adguard.txt)\t| AdGuard（匹配整个URL的域名部分） \t|\n| `anti-ad-domains.txt` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-domains.txt) \t| [官网地址🚀](https://anti-ad.net/domains.txt)\t| Pi-Hole或其他工具（[白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-list.txt)） \t|\n| `anti-ad-surge.txt` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge.txt) \t| [官网地址🚀](https://anti-ad.net/surge.txt)\t| Surge或其他工具 \t|\n| `anti-ad-surge2.txt` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-surge2.txt) \t| [官网地址🚀](https://anti-ad.net/surge2.txt)\t| Surge或其他工具，DOMAIN-SET 格式性能更好 \t|\n| `anti-ad-clash.yaml` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-clash.yaml) \t| [官网地址🚀](https://anti-ad.net/clash.yaml)\t| Clash Premium 类似工具（[白名单](https://raw.githubusercontent.com/privacy-protection-tools/dead-horse/master/anti-ad-white-for-clash.yaml)）\t|\n| `anti-ad-smartdns.conf` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-smartdns.conf) \t| [官网地址🚀](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)） \t|\n| `anti-ad-sing-box.srs` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-ad.github.io/master/docs/anti-ad-sing-box.srs) \t| [官网地址🚀](https://anti-ad.net/anti-ad-sing-box.srs) \t| sing-box（二进制文件，需`1.10.0`及以上版本） \t|\n| `mihomo.mrs` \t| [link](https://raw.githubusercontent.com/privacy-protection-tools/anti-ad.github.io/master/docs/mihomo.mrs) \t| [官网地址🚀](https://anti-ad.net/mihomo.mrs) \t| mihomo（二进制文件，需`1.18.7`及以上版本） \t|\n\n`anti-ad-easylist.txt` 包含正则规则，适用于 AdGuardHome，请勿在 AdGuard/uBlock Origin 等能够匹配 URL 路径的工具中使用（特定 URL 可能被错误拦截）\n\n## 争议域名\n\n一些域名可能与广告/跟踪有关，但部分情况下它们还有其他的作用，拦截它们可能会造成额外的问题。本项目对部分此类有争议的域名做了整理和简单说明，您可根据自己的需要自行添加额外规则放行或拦截相关域名。\n\n[点此查看](./discretion/README.md)\n\n欢迎 anti-AD 用户贡献和完善这部分内容。\n\n## 版本历史\n\n#### v4.5.2 (2022.12.15)\n- 项目代码切换到PHP 8，不完全兼容旧版本PHP\n\n#### v4.5.1 (2021.05.31)\n- 移动构建脚本到[另一个分支](https://github.com/privacy-protection-tools/anti-AD/tree/adlist-maker)，让默认分支看起来更干净\n- github Actions的针对性优化，优化自动构建逻辑\n- anti-AD仍然是一个完全开源的项目\n- 没有了\n\n#### v4.5.0 (2021.05.02)\n- 重构工具`easylist-extend.php`，优化提升3倍执行效率\n- 修复一部分小bug\n- 开始支持[AdGuardHome新的modifiers](https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#modifiers)语法(目前测试阶段，adgh本身解析还有bug)\n\n#### [更多版本演进历史\u003e\u003e\u003e](https://github.com/privacy-protection-tools/anti-AD/blob/master/changelog.md)\n\n## 一些补充的话\n\nanti-AD 在自我认知上始终是一个非主流的小众项目。此项目一直坚持每一行代码开源！anti-AD 过滤列表的所有规则均来自上游列表和网友提交的 issues，欢迎各界朋友审阅。在没有阅读代码或没有完全理解代码意图之前，本项目以及作者不再接受任何无端的质疑、猜忌，作者也不打算再浪费时间作出任何解释。\n\n## 欢迎提issue\n\n对于 anti-AD，大家伙儿有任何建议，或者存在误杀，bug，其他错误，各种意见 [请开 issue](https://github.com/privacy-protection-tools/anti-AD/issues/new/choose)\n\n加入 QQ 群更实时的交流：716981535 \u003cbr\u003e\n![716981535](https://user-images.githubusercontent.com/1243610/73809320-de535780-480d-11ea-82f5-15d4c3ccb0c0.png)\n\n## Special Thanks To\n\n- [TG-Twilight/AWAvenue-Ads-Rule](https://github.com/TG-Twilight/AWAvenue-Ads-Rule) - 秋风广告规则，干掉所有无良广告 (来自[#897](https://github.com/privacy-protection-tools/anti-AD/issues/897))\n- [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community) - Community managed domain list\n- [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)\n- [AdguardTeam/AdguardFilters](https://github.com/AdguardTeam/AdguardFilters) - AdGuard Content Blocking Filters\n- [fanboy-annoyance](https://easylist.to/easylist/fanboy-annoyance.txt) - 优秀的easylist列表\n- [notracking/hosts-blocklists-scripts](https://github.com/notracking/hosts-blocklists-scripts) - 提供无效域名和无效hosts列表\n- [Adblock Plus](https://adblockplus.org/) - 畅游清爽洁净的网络！\n- [neoFelhz/neohosts](https://github.com/neoFelhz/neohosts) - 自由·负责·克制 去广告 Hosts 项目\n- [vokins/yhosts](https://github.com/vokins/yhosts) - yhosts（该源已停止维护）\n- [cjx82630/cjxlist](https://github.com/cjx82630/cjxlist) - Adblock Plus EasyList Lite与CJX's Annoyance List\n- _[@rufengsuixing](https://github.com/rufengsuixing) 提出的jsDelivr加速过滤列表下载的建议_\n- _[@xlighting2017](https://github.com/xlighting2017) 提供的[surge格式建议](https://github.com/privacy-protection-tools/anti-AD/issues/29)_\n- [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)\n- [ADgk.txt](https://github.com/banbendalao/ADgk) - 鸣谢 坂本dalao\n- [jdlingyu/ad-wars](https://github.com/jdlingyu/ad-wars) - 只是 ad-wars 的帮助文档\n- [hoshsadiq/adblock-nocoin-list](https://github.com/hoshsadiq/adblock-nocoin-list) - 恶意挖矿屏蔽列表\n- [easylist.to](https://easylist.to/) - 感谢提供出色的easylist\n- [ZeroDot1/CoinBlockerLists](https://gitlab.com/ZeroDot1/CoinBlockerLists) - 屏蔽恶意劫持挖矿\n- [crazy-max/WindowsSpyBlocker](https://github.com/crazy-max/WindowsSpyBlocker) - Block spying and tracking on Windows\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivacy-protection-tools%2Fanti-ad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprivacy-protection-tools%2Fanti-ad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprivacy-protection-tools%2Fanti-ad/lists"}