This commit is contained in:
gently 2021-05-28 20:41:56 +08:00
parent f7cc3321e5
commit aac3448189
19 changed files with 1 additions and 342231 deletions

View File

@ -1,13 +0,0 @@
---
name: 报告误拦截,误杀
about: 报告误拦截,误杀
title: "[误杀]"
labels: bug, 误杀
assignees: ''
---
域名ppp.net
发生时间xxx年xx月xx日
使用的列表: (具体的文件,例如/anti-ad-easylist.txt, /dist/anti-ad-surge-full.txt等等
问题描述:

View File

@ -1,12 +0,0 @@
---
name: 新增拦截
about: 我发现了需要拦截的域名
title: "[新增拦截]"
labels: 新增
assignees: ''
---
域名:
出现场景:
补充说明:

21
.github/config.yml vendored
View File

@ -1,21 +0,0 @@
# Configuration for welcome - https://github.com/behaviorbot/welcome
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
# Comment to be posted to on first time issues
newIssueWelcomeComment: >
Thank you for opening your first issue in this repo. Its people like you who make anti-AD better!
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
# Comment to be posted to on PRs from first time contributors in your repository
newPRWelcomeComment: >
Thank you for submitting this pull request! Well get back to you as soon as we can!
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
# Comment to be posted to on pull requests merged by a first time user
firstPRMergeComment: >
Congrats on merging your first pull request! We here at behaviorbot are proud of you!
# It is recommended to include as many gifs and emojis as possible!

View File

@ -1,25 +0,0 @@
name: Auto build new list
on:
schedule:
- cron: "25 01 */3 * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Run start-ci.sh
run: |
sudo update-alternatives --set php /usr/bin/php7.4
./scripts/start-ci.sh
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add *
git commit -m "Auto renew the anti-AD list." -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PERSON_TOKEN }}
branch: 'master'

View File

@ -1,50 +0,0 @@
name: sync list to dist
on:
schedule:
- cron: "16 13 */3 * *"
push:
branches:
- 'master'
paths:
- 'anti-ad-*.txt'
- 'anti-ad-*.conf'
- 'anti-ad-*.yaml'
- 'adblock-for-dnsmasq.conf'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: clone the website
run: git clone https://github.com/privacy-protection-tools/anti-ad.github.io.git ~/website
- name: copy some list files
run: |
cp ./anti-ad-easylist.txt ~/website/docs/easylist.txt
cp ./anti-ad-easylist.txt.md5 ~/website/docs/easylist.txt.md5
cp ./anti-ad-adguard.txt ~/website/docs/adguard.txt
cp ./anti-ad-adguard.txt.md5 ~/website/docs/adguard.txt.md5
cp ./adblock-for-dnsmasq.conf ~/website/docs/dnsmasq.conf
cp ./adblock-for-dnsmasq.conf ~/website/docs/anti-ad-for-dnsmasq.conf
cp ./anti-ad-smartdns.conf ~/website/docs/anti-ad-for-smartdns.conf
cp ./anti-ad-surge.txt ~/website/docs/surge.txt
cp ./anti-ad-surge2.txt ~/website/docs/surge2.txt
cp ./anti-ad-clash.yaml ~/website/docs/clash.yaml
cp ./anti-ad-domains.txt ~/website/docs/domains.txt
- name: Commit files
run: |
cd ~/website
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "pull newest list." -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PERSON_TOKEN }}
branch: 'master'
directory: '/home/runner/website'
repository: 'privacy-protection-tools/anti-ad.github.io'

View File

@ -1,76 +0,0 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at anti-ad@outlook.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

View File

@ -1,69 +1,3 @@
# anti-AD
#### 致力于成为中文区命中率最高的广告过滤列表实现精确的广告屏蔽和隐私保护。anti-AD现已支持AdGuardHomednsmasq SurgePi-Holesmartdns等网络组件。完全兼容常见的广告过滤工具所支持的各种广告过滤列表格式
使用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或其他。 |
| `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。 |
| `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 |
## 版本历史
#### v4.5.0 (2021.05.02)
- 重构工具`easylist-extend.php`优化提升3倍执行效率
- 修复一部分小bug
- 开始支持[AdGuardHome新的modifiers](https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#modifiers)语法(目前测试阶段adgh本身解析还有bug)
#### v4.3 (2020.02.04)
- 引入无效域名、无效hosts剔除机制大幅提升各过滤列表命中率
- 为了更好的支持pi-hole加入一个新的全域名列表 - `anti-ad-domains.txt`
- 根据网友 [@xlighting2017](https://github.com/privacy-protection-tools/anti-AD/issues/29) 建议更新surge的格式
- 引入数个新的配置参数,对输出结果精确控制
- 若干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
- [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/) - to block spying and tracking on Windows systems.
## 本项目使用PHPStorm开发特此感谢
[![phpstorm](./others/icon-phpstorm.png)](https://www.jetbrains.com/zh-cn/opensource/)
#### 致力于成为中文区命中率最高的广告过滤列表实现精确的广告屏蔽和隐私保护。anti-AD现已支持AdGuardHomednsmasq SurgePi-Holesmartdns等网络组件。

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
4b0aab9d347bfac2fc0d7e623901fb2d

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
097152dc6e2ed412e7e77f0eb5514402

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,57 +0,0 @@
# anti-AD change log
#### v4.5.0 (2021.05.02)
- 重构工具`easylist-extend.php`优化提升3倍执行效率
- 修复一部分小bug
- 开始支持[AdGuardHome新的modifiers](https://github.com/AdguardTeam/AdGuardHome/wiki/Hosts-Blocklists#modifiers)语法(目前测试阶段adgh本身解析还有bug)
#### v4.3 (2020.02.04)
- 引入无效域名、无效hosts剔除机制大幅提升各过滤列表命中率
- 为了更好的支持pi-hole加入一个新的全域名列表 - `anti-ad-domains.txt`
- 根据网友 @xlighting2017 建议更新surge的格式
- 引入数个新的配置参数,对输出结果精确控制
- 若干bug和逻辑修复
#### v4.2.2 (2020.02.02)
- 传统白名单增强模式,支持根域名单独加白而不影响其子域名
- 开始支持自动同步到另一个repo自动发布更新
- 开始引入官网,逐步建设完善
- 修复一些逻辑bug
#### v4.2.1 (2020.01.19)
- 增加对恶意挖矿域名列表的屏蔽
- 引入严格模式对恶意挖矿程序屏蔽时默认屏蔽其主域名例如www.baidu.com,严格模式启用时屏蔽baidu.com及其所有子域名
- 修复.cn域名匹配中发现的bug
- 一些正则表达式规则的进一步提取优化
#### v4.2 (2020.01.16)
- easylist支持正则表达式语法
- easylist白名单机制增强
#### v4.1 (2019.12.24)
- easylist支持通配符匹配域名
- easylist引入白名单赦免机制
#### v4.0 (2019.12.14)
- 开始支持主动探测无效域名进一步降低最终生成文件位于dist目录的体积提升命中率
- 开始支持dnsmasqeasylistsurge等多种格式
- 分离出国内域名的精简配置(`dist/*-basic.*`)和优化后的完整配置(`dist/*-full.*`),可以根据需求选择屏蔽等级
- 代码重构工程化分离class分离工具逻辑更清晰
#### v3.0 (2019.10.19)
- 严格匹配域名,增强生成列表的有效性
- 黑名单逻辑优化
- 重复域名剔除算法优化,进一步精简列表
- 代码bug修复
#### 3.0之前(2017年某日开始)
单个文件生成列表,主要做了更新各种靠谱来源的收集

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB