找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5727|回复: 15

请教各大神,关于adbyby的使用问题

[复制链接]
发表于 2018-10-17 21:31 | 显示全部楼层 |阅读模式
路由器明明已开启了adbyby广告过滤, 但每次开机使用时(路由器不是一直都开着的), 发现有时可以过滤广告的, 但有时又不能, 不知道怎么会这样的, 求教, 谢谢!!
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-10-17 21:33 | 显示全部楼层
我的是k2正常过滤k2p k3官改打开过滤都不行,梅林正常
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 21:42 | 显示全部楼层
开启后看看规则是不是到了最近的日期,手动运行更新.sh会下载一个3M左右的包,我这里下载很慢,1KB/s的下载!!默认似乎是很久之前的规则。

点评

是不是每次开机后都要手动更新一下才行的  详情 回复 发表于 2018-10-17 21:53
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-17 21:53 | 显示全部楼层
本帖最后由 jmlove008 于 2018-10-17 22:00 编辑
czytea 发表于 2018-10-17 21:42
开启后看看规则是不是到了最近的日期,手动运行更新.sh会下载一个3M左右的包,我这里下载很慢,1KB/s的下载 ...

是不是每次开机后都要手动更新一下才行的, 我另外的一台tp2041,装了同样的adbyby,但很正常的, 每次就可以过滤广告

点评

没错!只要一重启规则就还原到安装时的状态  详情 回复 发表于 2018-10-17 21:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 21:55 | 显示全部楼层
本帖最后由 czytea 于 2018-10-17 22:01 编辑
jmlove008 发表于 2018-10-17 21:53
是不是每次开机后都要手动更新一下才行的

没错!只要一重启规则就还原到安装时的状态
需要SSH到路由器 然后运行下指令,指令看计划任务里有
sh /bin/adupdate什么的.sh
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 22:03 | 显示全部楼层
https://www.right.com.cn/forum/thread-217335-1-1.html

论坛这个利用dnsmasq过滤广告的也不错,我现在用这个R.8.1.8可以装。我只装了第五项 过滤广告的

点评

这个我也试了,搞不起。。。整完后上网巨慢。。FQ无效,广告依旧在,只能卸载了。  详情 回复 发表于 2018-10-18 20:33
你所说的那个, 我也看过, 但看不明, 不会操作呢,你可以简单给我说一下吗,谢谢了  详情 回复 发表于 2018-10-17 22:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-17 22:28 | 显示全部楼层
czytea 发表于 2018-10-17 22:03
https://www.right.com.cn/forum/thread-217335-1-1.html

论坛这个利用dnsmasq过滤广告的也不错,我现在 ...

你所说的那个, 我也看过, 但看不明, 不会操作呢,你可以简单给我说一下吗,谢谢了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-17 22:31 | 显示全部楼层
SSH到路由器 吧dnsmasq_sh.sh放到路由 /tmp/下
然后putty到路由器,cd /tmp  (putty改下编码UTF-8,不然乱码)
打指令 sh dnsmasq_sh.sh

点评

好的, 有空就去试试, 谢谢啦  详情 回复 发表于 2018-10-17 22:39
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-10-17 22:39 | 显示全部楼层
czytea 发表于 2018-10-17 22:31
SSH到路由器 吧dnsmasq_sh.sh放到路由 /tmp/下
然后putty到路由器,cd /tmp  (putty改下编码UTF-8,不然乱 ...

好的, 有空就去试试, 谢谢啦
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-18 20:33 | 显示全部楼层
czytea 发表于 2018-10-17 22:03
https://www.right.com.cn/forum/thread-217335-1-1.html

论坛这个利用dnsmasq过滤广告的也不错,我现在 ...

这个我也试了,搞不起。。。整完后上网巨慢。。FQ无效,广告依旧在,只能卸载了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-19 20:48 | 显示全部楼层
好像很NB的样子,不知我的可以用吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-19 21:59 来自手机 | 显示全部楼层
自己写了个脚本,用起来效果不错,明天开pc后发给你。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-19 22:03 来自手机 | 显示全部楼层
已经弃用adbyby了,用dnsmasq效果不错。自己写了个简单脚本,明天用电脑发给你。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-20 08:23 | 显示全部楼层
本帖最后由 lm317379829 于 2018-10-25 11:16 编辑

命名为ad.sh,放在/usr/bin/目录下,并提供执行权限。noad.conf是自动生成的dnsmasq格式文件,whitelist是白名单、blacklist是黑名单,黑白名单在/etc/adblock.sh目录下。直接填入网址即可。
  1. #!/bin/sh
  2. . /etc/profile >/dev/null 2>&1

  3. #首次运行,修改dnsmasq配置,创建定时任务与相关文件
  4. if [ ! -d "/etc/dnsmasq.d" ];then
  5. mkdir /etc/adblock.sh
  6. touch /etc/adblock.sh/whitelist
  7. touch /etc/adblock.sh/blacklist
  8. mkdir /etc/dnsmasq.d
  9. echo conf-dir=/etc/dnsmasq.d >>/etc/dnsmasq.conf
  10. echo "" >>/etc/crontabs/root
  11. echo 15 3 * * 0 /usr/bin/ad.sh >>/etc/crontabs/root
  12. fi

  13. #下载规则文件
  14. wget --no-check-certificate -qO- https://raw.githubusercontent.com/vokins/yhosts/master/dnsmasq/union.conf|grep '0.0.0.0'|sed 's/address=\/.//g'|sed 's/\/0.0.0.0//g' >/tmp/ad1.conf
  15. wget --no-check-certificate -qO - https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt| grep ^\|\|[^\*]*\^$ |sed 's/||//g'|sed 's/\^//g' >/tmp/ad2.conf
  16. wget --no-check-certificate -qO- http://www.malwaredomainlist.com/hostslist/hosts.txt|sed -e '/localhost/d'|grep '127.0.0.1'|sed 's/127.0.0.1  //g' >/tmp/ad3.conf
  17. wget --no-check-certificate -qO- https://raw.githubusercontent.com/vokins/yhosts/master/hosts.txt|sed -e '/XiaoQiang/d'|sed -e '/localhost/d'|grep '127.0.0.1'|sed 's/127.0.0.1 //g' >/tmp/ad4.conf

  18. #合并、修正规则
  19. cat /tmp/ad1.conf /tmp/ad2.conf /tmp/ad3.conf /tmp/ad4.conf /etc/adblock.sh/blacklist|sed -e '/[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}/d'|sort|uniq > /tmp/ad.conf
  20. cat /tmp/ad.conf /etc/adblock.sh/whitelist|sort | uniq -u > /tmp/noad.conf
  21. cat /tmp/noad.conf|sed 's/^/address=\/&/g'|sed 's/$/&\/127.0.0.1/g'| tr -d "\r" >/etc/dnsmasq.d/noad.conf
  22. rm -f /tmp/ad.conf /tmp/ad1.conf /tmp/ad2.conf /tmp/ad3.conf /tmp/ad4.conf /tmp/noad.conf

  23. sleep 1

  24. /etc/init.d/dnsmasq restart
复制代码


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

使用道具 举报

发表于 2018-10-24 23:55 | 显示全部楼层
lm317379829 发表于 2018-10-20 08:23
if [ ! -d "/etc/dnsmasq.d" ];then
mkdir /etc/dnsmasq.d
echo conf-dir=/etc/dnsmasq.d >>/etc/dnsmasq ...

这个安装以后有面板吗?

点评

这是个脚本,哪有什么面板。 自动定时执行,能屏蔽大部分网页广告,不能屏蔽视频广告。  详情 回复 发表于 2018-10-25 08:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 22:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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