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

52 lines
2.6 KiB
Markdown

5 years ago
# anti-AD v4
5 years ago
##### anti-AD是综合著名广告过滤列表的高效广告屏蔽、隐私保护工具。能主动探测域名支持国内外广告分开屏蔽现已支持AdGuardHomednsmasq SurgePi-Hole等优秀的网络组件。
## 快速使用
5 years ago
### 1. dnsmasq
5 years ago
1. 下载[adblock-for-dnsmasq.conf](https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/adblock-for-dnsmasq.conf) ([国内加速](https://anti-ad.oss-cn-shanghai.aliyuncs.com/adblock-for-dnsmasq.conf)), 保存到你的dnsmasq配置的正确目录下
5 years ago
2. 重启dnsmasq服务
3. 已经生效了enjoy it
5 years ago
### 2. AdGuardHome
1. 进入AdGuardHome过滤器页面选择添加过滤器
5 years ago
2. 输入名称 `anti-AD`url地址`https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt`
5 years ago
3. 点击确认后即生效
5 years ago
### 3. Pi-Hole
1. 进入Pi-Hole的配置界面
5 years ago
2. 添加 `https://raw.githubusercontent.com/privacy-protection-tools/anti-AD/master/anti-ad-easylist.txt` 作为新的过滤器
5 years ago
3. 保存后生效
5 years ago
## Changelog
#### v4.0 (2019.12.14)
- 开始支持检查无效域名,进一步降低最终生成文件的体积
- 分离出国内域名的精简配置(`dist/anti-ad-basic.conf`)和优化后的完整配置(`dist/anti-ad-full.conf`),可以选择不同等级了
- 代码重构工程化分离class分离工具逻辑更清晰
6 years ago
5 years ago
## 个性化
6 years ago
5 years ago
运行start.sh,会去下载easylist,yhosts,neohosts,cjxlist等其他大神维护的屏蔽列表然后整理合并成一个文件。拿着这个文件放入到例如/etc/dnsmasq.d/的目录下然后重启dnsmasq进程就能加载。更新依赖于其他大神的内容更新了。
5 years ago
* `adblock-for-dnsmasq.conf` - 这个是最终生成的支持dnsmasq的广告屏蔽列表
* `anti-ad-easylist.txt` - 这个是最终生成的easylist格式同时支持Pi-HoleAdGuardHome的广告屏蔽列表
* `anti-ad-surge.txt` - 这个是最终生成的支持Surge格式的广告屏蔽列表
* `make-addr.php` - 是php脚本的主文件,执行php make-addr.php将更新屏蔽列表
5 years ago
## 欢迎提意见
5 years ago
对于本工具大家伙儿有任何建议或者存在误杀bug其他错误各种意见 [请开issue](https://github.com/gentlyxu/anti-AD/issues/new)
## 特别感谢
- [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