小的修改和readme内容

This commit is contained in:
gently 2019-08-28 22:58:59 +08:00
parent 44b64e0e6d
commit 8e782bc55f
2 changed files with 11 additions and 8 deletions

View File

@ -1,17 +1,18 @@
# anti-AD
要特别感谢[neoFelhz/neohosts](https://github.com/neoFelhz/neohosts) - 自由·负责·克制 去广告 Hosts 项目
## 基于dnsmasq的尽可能满足个人需求的广告屏蔽、隐私保护工具
*哈哈,故意这么高大上的~*
我被五花八门的广告(闪图、视频、牛皮癣……)弄的很是郁闷,包含隐私窃取的各种统计(大数据收集?)让我感觉被侵犯,于是乎在某一天突然就想在路由器上屏蔽掉他们……
既然是dnsmasq为主角那么url中部分含有广告的path是无能为力的。
* * *
### 我尽量保持广告屏蔽列表的通用性。最简单的,只要[下载adblock-for-dnsmasq.conf](https://raw.githubusercontent.com/gentlyx/anti-AD/master/adblock-for-dnsmasq.conf) 这个文件可。
### 尽力保障屏蔽列表的通用性。[下载adblock-for-dnsmasq.conf](https://raw.githubusercontent.com/gentlyx/anti-AD/master/adblock-for-dnsmasq.conf) 这个文件可直接使用
* * *
但如果你还有浓厚的兴趣,那我就说一下
以下是多余的啰嗦
dnsmasq的配置我就不赘述建议是配置一个include dnsmasq.d 这样的一个目录下面所有的\*.conf文件
@ -21,8 +22,10 @@ dnsmasq的配置我就不赘述建议是配置一个include dnsmasq.d 这样
make-addr.php 是php脚本的主文件将下载的诸多源easylisthostsdnsconf文件合并成一个最终的广告屏蔽列表文件
[adblock-for-dnsmasq.conf](https://raw.githubusercontent.com/gentlyx/anti-AD/master/adblock-for-dnsmasq.conf) 这个是最终生成的配置文件,我会保持一定频率的更新大约每月2次,所以,如果你打算直接下载我维护的这个文件,那可能不需要太高的频率
[adblock-for-dnsmasq.conf](https://raw.githubusercontent.com/gentlyx/anti-AD/master/adblock-for-dnsmasq.conf) 这个是最终生成的配置文件,大约每月更新4次,所以,如果你打算直接下载我维护的这个文件,不需要太高的pull频率
black_domain_list.php 是用来配置黑名单的
`black_domain_list.php` 是用来配置黑名单的
block_domains.root.conf 这个文件是用来配置无论别人怎么更新,你都要保留的配置的,我的配置不一定适合你,请酌情修改,最大的个性化内容在这里了
`white_domain_list.php` 白名单
`block_domains.root.conf` 这个文件是用来配置无论别人怎么更新,你都要保留的配置的,我的配置不一定适合你,请酌情修改,最大的个性化内容在这里了

View File

@ -19,9 +19,9 @@ $easylist1 = file_get_contents('./easylistchina+easylist.txt');
$arr_result = array_merge_recursive($arr_result, makeAddr::get_domain_from_easylist($easylist1));
$easylist2 = file_get_contents('./koolproxy.txt');
//$easylist2 = file_get_contents('./koolproxy.txt');
$arr_result = array_merge_recursive($arr_result, makeAddr::get_domain_from_easylist($easylist2));
//$arr_result = array_merge_recursive($arr_result, makeAddr::get_domain_from_easylist($easylist2));
echo '开始下载host1....',"\n";