app2smile / rules

iOS App去广告
MIT License
3.18k stars 211 forks source link

Loon 起点去广告失败 ios16.1 #81

Closed wyq977 closed 1 year ago

wyq977 commented 1 year ago

iOS: 16.1 (iPhone Xs Max) 起点: 5.9.257 Loon: 2.2.1(468)

Loon config, MITM证书已安装

我试着把其他分流规则和插件都disable,仍旧不行。

# Date:   2022-01-20
# Author: zorro

[General]
ipv6 = false
skip-proxy = [192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com](http://192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com)
bypass-tun = [10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32](http://10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.18.0.0/15,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,255.255.255.255/32)
# doh server, only for Wireformat
# doh-server = https://example.com/dns-query
allow-udp-proxy = false
allow-wifi-access = false
wifi-access-http-port = 7222
wifi-access-socks5-port = 7221
# 代理测速 URL 用于Proxy Group自动选择
proxy-test-url = http://www.qualcomm.cn/generate_204
test-timeout = 3
interface-mode = auto
# [DNS] => DNS server
# 搜索公共DNS推荐或自建
dns-server = system,119.29.29.29,223.5.5.5,223.6.6.6,114.114.114.114,119.28.28.28

# 手动添加的节点
[Proxy]
# 内置 DIRECT、REJECT 策略
# 内置 PROXY 指向本地节点或者订阅节点中的任何一个(有本地节点默认指向第一个本地节点,当没有本地节点但有订阅节点时,指向第一个订阅的第一个节点,本地节点和订阅节点都不存在时指向DIRECT)

# 机场订阅节点
[Remote Proxy]
# 格式 机场别名 = 机场订阅地址
订阅名 = https://subscribe.bityun.org/api/v1/client/subscribe?token=yourtoken,udp=false,fast-open=false,vmess-aead=true,enabled=true

[Remote Filter]
# 香港节点 = NameRegex, FilterKey = "(?i)(港|HK|Hong)"

[Proxy Group]
手动切换 = select,订阅名,DIRECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Loop.png
自动选择 = url-test,订阅名,url = http://www.gstatic.com/generate_204,interval = 300,tolerance = 100,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Auto.png
代理节点 = select,手动切换,自动选择,DIRECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Proxy.png
剩余流量 = select,代理节点,DIRECT,img-url = https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png

# 本地分流规则
[Rule]
DOMAIN-SUFFIX,[amjoltiktor.com](http://amjoltiktor.com/),DIRECT
DOMAIN-SUFFIX,[tiktokv.com](http://tiktokv.com/),DIRECT
DOMAIN-KEYWORD,traffic,DIRECT
# 感觉很难filtersuggested ads
# channel图片和广告缩略图是一个域名的
# DOMAIN-SUFFIX,[app-measurement.com](http://app-measurement.com/),永远拦截
# DOMAIN,[traffic.megaphone.fm](http://traffic.megaphone.fm/),DIRECT
# block FotorGear ads
# USER-AGENT,FotorGear,永远拦截
# DOMAIN,[fotogeeker.com](http://fotogeeker.com/),永远拦截
# DOMAIN-SUFFIX,[trace.qq.com](http://trace.qq.com/),永远拦截
# DOMAIN-SUFFIX,[bugly.qq.com](http://bugly.qq.com/),永远拦截
# DOMAIN-SUFFIX,[jpush.cn](http://jpush.cn/),永远拦截
# USER-AGENT,com.facebook.Facebook,永远拦截
GEOIP,CN,DIRECT
FINAL,DIRECT

# 远程分流 Filter
[Remote Rule]
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising.list, policy=REJECT, tag=屏蔽广告traffic会屏蔽podcast, enabled=false
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising_Domain.list, policy=REJECT, tag=屏蔽广告会拦截抖音, enabled=false

# 本地URL复写
[URL Rewrite]
enable = false

# 远程URL复写订阅
[Remote Rewrite]

# 本地脚本
[Script]
http-request ^https:\/\/www\.v2ex\.com\/mission\/daily script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/v2ex/v2ex.cookie.js, timeout=10, enabled=false, tag=v2ex获取cookie
cron "30 9 * * *" script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/v2ex/v2ex.js, enabled=false, tag=v2ex签到

# 远程脚本
[Remote Script]

# 插件(类似Surge的模块)
# 使用Plugin 免得添加很多Remote Rule
[Plugin]
https://raw.githubusercontent.com/app2smile/rules/master/plugin/bilibili.plugin, tag=哔哩哔哩, enabled=false
https://raw.githubusercontent.com/app2smile/rules/master/plugin/tieba.plugin, tag=贴吧, enabled=false
https://raw.githubusercontent.com/app2smile/rules/master/plugin/adsense.plugin, tag=广告联盟, enabled=false
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin, tag=BoxJs, enabled=false
https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/startup/startup.lnplugin, tag=开屏去广告, enabled=false
https://raw.githubusercontent.com/app2smile/rules/master/plugin/qidian.plugin, tag=起点去广告, enabled=true

[Mitm]
skip-server-cert-verify = false
hostname = *.[v2ex.com](http://v2ex.com/)
enable = true
ca-passphrase = ...
ca-p12 = ...

请问需要附上什么日志文件吗?

wyq977 commented 1 year ago

Loon 的插件我暂时找不到脚本/js的log

app2smile commented 1 year ago

脚本日志中可以查看。需要把脚本日志的界面调出来

app2smile commented 1 year ago

而且你说的去广告失败是哪个界面的广告?

wyq977 commented 1 year ago

而且你说的去广告失败是哪个界面的广告?

开屏

Loon 插件好像看不到日志亚

app2smile commented 1 year ago

可以看到日志image

wyq977 commented 1 year ago

我用的是Loon 你这是surge吧?

app2smile commented 1 year ago

这个截图是loon测试版。

更详细的排查问题方法就是开启抓包,然后打开起点app。抓包记录中搜索v4/client/getsplashscreen 这个是开屏页的 看看命中什么规则和脚本。

我日常用surge,loon不咋用。如果你抓不到包,开启loon的情况下,删掉起点app重新下载打开

app2smile commented 1 year ago

image

wyq977 commented 1 year ago

67055FB0-6362-4F50-96C3-29C3358B0198

我看这些个request都是DIRECT

app2smile commented 1 year ago

额 重点要看命中什么脚本

wyq977 commented 1 year ago

我在Loon上找不到脚本的log (插件)

上面的也是直接从请求记录里面找出来的 好像也没有调用到脚本

app2smile commented 1 year ago

这边还是无法还原你的情况 你先把loon各项功能都熟悉熟悉

wyq977 commented 1 year ago

我这里直接加你的脚本 日志为空 93098081-4893-456E-B855-2B5FC5D3B9AB A232AABE-E273-427B-9D3E-AF01B0C60861

app2smile commented 1 year ago

运行cron脚本无意义。

起点的特殊点在于它的链接是tcp的,surge和loon可以解密。

如果因为软件没有配置好或者其他问题是会有无法匹配脚本的情况。

wyq977 commented 1 year ago

我设置的是http response 但是日志里就显示是cron

1CD54273-1A90-4435-AD91-D4B5BA3C5592

wyq977 commented 1 year ago

在起点app清除缓存后 正常