Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BMCLAPI启动器UA规则 #2

Open
3 tasks done
bangbang93 opened this issue Feb 1, 2024 · 30 comments
Open
3 tasks done

BMCLAPI启动器UA规则 #2

bangbang93 opened this issue Feb 1, 2024 · 30 comments
Labels
严重问题 这条Issue必须要认真对待

Comments

@bangbang93
Copy link

检查项

  • 我充分理解提交的建议可能无法所有启动器作者参与,并尊重所有启动器开发者的选择
  • 我确认在Issues列表中并无其他人已经提出过与此问题相同或相似的问题
  • 我确认该反馈并非针对单个启动器的,如果是,我将会去该启动器的反馈页面反馈

您是什么类型的用户

第三方网站管理/负责人(MC相关的)

请简单的说一下您的想法

BMCLAPI希望启动器能够使用统一的UA格式访问

它能解决什么样的问题/带来什么样的帮助

便于BMCLAPI的日志统计分析

期望的结果

访问BMCLAPI时,使用${NAME}/${VERSION}作为UA的开头,比如BMCL目前使用的UA是BMCLNG/4.10.0.1234,之后是否还跟随额外信息暂时并没有区别

是否有对这个方案的相关链接?

No response

附注

No response

@ZhaiSoul
Copy link
Member

ZhaiSoul commented Feb 1, 2024

只需要版本号吗?是否需要其他信息例如联系人邮箱

@bangbang93
Copy link
Author

UA太公开了,没有必要搞邮箱

@ZhaiSoul ZhaiSoul added the 严重问题 这条Issue必须要认真对待 label Feb 1, 2024
@TT702
Copy link

TT702 commented Feb 1, 2024

BakaXL 使用的是 BakaXL/3.0 作为 UA 的

@tnqzh123
Copy link

tnqzh123 commented Feb 1, 2024

LittleSkin 也希望启动器能够使用统一的 UA 请求 Yggdrasil API,以方便我们统计数据。

@LTCatt
Copy link

LTCatt commented Feb 2, 2024

PCL 的 UA 是 PCL2/版本号 开头的

@laolarou726
Copy link

laolarou726 commented Feb 2, 2024

LauncherX 目前是 LauncherX/版本号 作为UA

@Steve-xmh
Copy link

Sharp Craft Launcher 目前使用的是 github.com/Steve-xmh/SharpCraftLauncher (stevexmh@qq.com) 作为 UA

image

@ZhaiSoul
Copy link
Member

ZhaiSoul commented Feb 2, 2024

注意,各大启动器需要确认你们用到的所有有关BMCLAPI的请求都给予了正确的UA,例如请求接口获取meta数据时候的和下载文件时候的是否UA一致,不要有遗漏

@burningtnt
Copy link

HMCL 使用 HMCL/<version> 作为 UA
System.getProperties().putIfAbsent("http.agent", "HMCL/" + Metadata.VERSION);

@8MiYile
Copy link

8MiYile commented Feb 5, 2024

去年12月,go端面板做出来的时候,我们就在内部讨论说怎么有些程序的ua请求很乱,甚至连安卓的dalvik都出来了
https://bmclapi.8mi.tech
这个是我的节点,统计的是请求成功的
这里面的dalvik请求还有一部分是来自曾经的FCL,
因为我给他们提交了方案,所以新版的没这个问题


其实93哥这样提也是为了方便大学镜像源的请求统计系统,因为目前有些大学镜像源正在跟我们一起分担BMCLAPI上边的无争议文件的流量
(就是除了minecraft的涉及版权文件)
镜像列表地址:https://mirrors.cernet.edu.cn/list/bmclapi

@8MiYile
Copy link

8MiYile commented Feb 5, 2024

Sharp Craft Launcher 目前使用的是 github.com/Steve-xmh/SharpCraftLauncher (stevexmh@qq.com) 作为 UA

image

你这个主要是斜杠那么多,要不然你把那些斜杠换成下划线会比较好一点,或者是竖线
然后还有一个问题,就是缺少版本号

@zyxkad
Copy link

zyxkad commented Feb 5, 2024

Sharp Craft Launcher 目前使用的是 github.com/Steve-xmh/SharpCraftLauncher (stevexmh@qq.com) 作为 UA

@Steve-xmh

请将项目地址放在comment中,例如:
SharpCraftLauncher/1.2.3 (github.com/Steve-xmh/SharpCraftLauncher) (stevexmh@qq.com)

@Steve-xmh
Copy link

感谢大家提议,SCL启动器的UA已经变更为 SharpCraftLauncher/{scl_version} (github.com/Steve-xmh/SharpCraftLauncher) (stevexmh@qq.com)

@8MiYile
Copy link

8MiYile commented Mar 7, 2024

目前还是有一些项目没有跟随规范,主要还是手机启动器方面的
https://github.com/search?q=bmclapi2.bangbang93.com+-user%3Abangbang93+-user%3Ahmcl-dev+-user%3AFCL-Team+-user%3AHex-Dragon&type=code
这个地址里面,我们发现一个一个一个一个的启动器(例如:pojav)未按规范设置,那些被我过滤掉的是按规范的主体
image
*上图来自我的节点的统计
像Dalvik这种的,就是没有按规范的,直接使用手机默认的User-Agent,重点检查国内外正在使用BMCLAPI的手机启动器

@zhi-feng2008
Copy link

Starry Sky Minecraft Launcher 目前使用 SSML/{Version} 作为请求 UA
其中开源启动器核心项目默认以 StarLight/{Version} 作为请求 UA
https://github.com/Ink-Marks-Studio/StarLight.Core

@LJS08
Copy link

LJS08 commented Aug 5, 2024

感谢提议, SMCL 使用 SMCL/{CoreVersion}作为请求UA
同时感谢各位的努力
https://github.com/LJS08/SMCL

@JingHai-Lingyun
Copy link

JingHai-Lingyun commented Aug 7, 2024

我最新计划开发的 Yun Launcher 系列启动器 YunMCL(Yun Minecraft Client Launcher)
使用 YunMCL/1.0 作为统一请求 UA,在第一代 EoL 之前都不会做出改变
https://github.com/Yuns-Lab/YunMCL

@zyxkad

This comment was marked as off-topic.

@zhi-feng2008

This comment was marked as off-topic.

@SALTWOOD
Copy link

SALTWOOD commented Aug 14, 2024

建议就使用 <启动器名>/<版本号> (附加信息)的方式得了
像是 openbmclapi-cluster/1.11.0(虽然不是启动器的UA就是了)

@Silverteal

This comment was marked as off-topic.

@SALTWOOD

This comment was marked as off-topic.

@Silverteal

This comment was marked as off-topic.

@zyxkad
Copy link

zyxkad commented Aug 14, 2024

这是互联网标准格式,也是大多数人的共识 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/User-Agent

不过不建议在这里战

@SALTWOOD

This comment was marked as off-topic.

@TT702
Copy link

TT702 commented Aug 14, 2024

这只是一个提案,建议各启动器开发者采用一个统一的UA格式。

@ZhaiSoul
Copy link
Member

不太清楚,既然已经共识了那么意义何在

因为共识是在这个issue中产生的,而您将它重复了一遍

我是指这个 issue,我不太清楚为什么既然UA使用那样的格式已经是互联网共识了,标题里的“UA规则”又是指啥?

不是所有开发者都清楚此类共识,所以提出,在期望的结果中已经标明了相关规范了,还请不要在这个Issue中版聊。

@SALTWOOD

This comment was marked as off-topic.

@natsurainko
Copy link

natsurainko commented Aug 19, 2024

Fluent Launcher 的 UserAgent 目前是 Natsurainko.FluentLauncher/<version>

@xphost008
Copy link

xphost008 commented Aug 19, 2024

我制作的Tank Launcher Module使用TLM/<version>作为UA,
然后下一个Tank Trait Trigger使用TTTrigger/<version>作为UA。
很抱歉LLL启动器已经停更,之前一直没加上UA(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
严重问题 这条Issue必须要认真对待
Projects
None yet
Development

No branches or pull requests