找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1896|回复: 7

利用dnsmasq外挂host文件来过滤广告

[复制链接]
发表于 2019-11-5 09:33 | 显示全部楼层 |阅读模式
本帖最后由 wulishui 于 2019-11-5 09:54 编辑

参考文档:https://github.com/notracking/hosts-blocklists
对于不想装其它ad过滤app的可以试试。类似于AdGuard Home、dnsforwarder一样的原理。



  • Download the following two files (or use a daily cronjob to do it automatically)
https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txthttps://raw.githubusercontent.co ... /master/domains.txt
  • Add the following lines to your dnsmasq.conf
conf-file=/path/to/domains.txtaddn-hosts=/path/to/hostnames.txt
  • Restart dnsmasq (reload will not update list changes) sudo service dnsmasq restar

高级设置可以修改:


我比较疯狂,反正不要钱

https://adaway.org/hosts.txt
https://www.malwaredomainlist.com/hostslist/hosts.txt
http://pgl.yoyo.org/adservers/se ... &mimetype=plaintext
http://winhelp2002.mvps.org/hosts.txt
https://hosts-file.net/ad_servers.txt
https://raw.githubusercontent.co ... aster/hostnames.txt






本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2019-11-5 09:54 | 显示全部楼层
这里有更详尽的用法介绍:
https://bitzhi.com/2019/06/using ... and-anti-hijacking/
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-5 10:03 | 显示全部楼层
这样能去什么类型的广告?帖子里的广告规则包含哪些方面,谢谢,我kpr和agh搭配使用,想添加到agh里

点评

我哪知,都是人家制作的规则,要想知道过滤了什么就得一行一行去看  详情 回复 发表于 2019-11-5 10:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-5 10:20 | 显示全部楼层
523295116 发表于 2019-11-5 10:03
这样能去什么类型的广告?帖子里的广告规则包含哪些方面,谢谢,我kpr和agh搭配使用,想添加到agh里

我哪知,都是人家制作的规则,要想知道过滤了什么就得一行一行去看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-5 12:21 | 显示全部楼层
大佬  学习学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-5 13:26 | 显示全部楼层
wulishui 发表于 2019-11-5 10:20
我哪知,都是人家制作的规则,要想知道过滤了什么就得一行一行去看

我知道,我意思是你用了这些规则,视频广告和手机app开启的广告能去嘛

点评

我也不知,我一概不用什么iqiyi,youku。。。。。。  详情 回复 发表于 2019-11-5 13:29
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2019-11-5 13:29 | 显示全部楼层
523295116 发表于 2019-11-5 13:26
我知道,我意思是你用了这些规则,视频广告和手机app开启的广告能去嘛

我也不知,我一概不用什么iqiyi,youku。。。。。。

点评

。。。好吧。  详情 回复 发表于 2019-11-5 14:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-11-5 14:19 | 显示全部楼层
wulishui 发表于 2019-11-5 13:29
我也不知,我一概不用什么iqiyi,youku。。。。。。

。。。好吧。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-3-29 09:08

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表