可信链接
Trusted Links 允许你跳过 Minecraft 对外部链接的确认提示,针对你明确信任的网站。同时,对于所有未知的链接,它仍会显示正常的警告。
如果你经常从聊天窗口或其他 Minecraft 界面中打开某些链接,该模组非常有用。无需每次重复确认同一个网站,只需点击一次 Yes & Trust Hostname(是并信任主机名)。此后,来自该主机的 HTTP 和 HTTPS 链接将直接打开。
工作原理
当 Minecraft 询问你是否要打开某个链接时,Trusted Links 会添加一个新选项:
Yes & Trust Hostname(是并信任主机名)
此操作会打开链接并记住其确切的主机名。例如,信任来自以下地址的链接:
https://store.example.com/products/123
将保存:
store.example.com
它不会自动信任更广泛的 example.com 域名,也不会信任诸如 blog.example.com 等无关的主机名。
受信任的主机名也涵盖其更深层次的子域名:
| 受信任的主机名 |
点击的主机名 |
结果 |
example.com |
example.com |
立即打开 |
example.com |
www.example.com |
立即打开 |
store.example.com |
cdn.store.example.com |
立即打开 |
store.example.com |
example.com |
显示确认提示 |
store.example.com |
blog.example.com |
显示确认提示 |
example.com |
example.com.evil.com |
显示确认提示 |
example.com |
evil-example.com |
显示确认提示 |
安全性
Trusted Links 不会全局禁用 Minecraft 的链接警告。
- 只有明确信任的主机名才能绕过确认提示。
- 仅普通的 HTTP 和 HTTPS 链接符合条件。
- 检查的是实际 URL 的主机名,而非可见的链接文本。
- 格式错误的链接和不支持的 URL 类型将保留 Minecraft 的正常行为。
- 如果配置文件缺失或无效,模组会安全地使用空的信任列表。
配置
受信任的主机名保存在以下位置:
.minecraft/config/trusted-links.json
你也可以在 Mod Menu 的配置界面中查看和移除受信任的主机名。
通常你不需要编辑此文件,因为可以通过确认界面添加主机名。如果需要,也可以在 Minecraft 关闭的情况下手动编辑该文件:
{
"trustedDomains": [
"hypixel.net",
"store.example.com"
]
}
要求
- Minecraft Java Edition 26.1.2
- Fabric Loader
- Fabric API
- Java 25
Trusted Links 仅为客户端模组。即使服务器未安装该模组,它也能在多玩家服务器中正常工作。
安装
使用 Modrinth App 安装 Trusted Links 及其列出的依赖项,或将下载的 JAR 文件放入你的 Fabric mods 文件夹中。
开源
Trusted Links 基于 MIT 许可证开源。欢迎在 GitHub 上提交问题和建议贡献。
Trusted Links
Trusted Links lets you skip Minecraft's external-link confirmation for websites you explicitly trust, while keeping the normal warning for every unknown link.
It is useful for links you open regularly from chat or other Minecraft screens. Instead of confirming the same website every time, click Yes & Trust Hostname once. Future HTTP and HTTPS links from that hostname will open immediately.
How it works
When Minecraft asks whether you want to open a link, Trusted Links adds a new option:
Yes & Trust Hostname
This opens the link and remembers its exact hostname. For example, trusting a link from:
https://store.example.com/products/123
saves:
store.example.com
It does not automatically trust the broader example.com domain or unrelated hostnames such as blog.example.com.
A trusted hostname also covers its deeper subdomains:
| Trusted hostname |
Clicked hostname |
Result |
example.com |
example.com |
Opens immediately |
example.com |
www.example.com |
Opens immediately |
store.example.com |
cdn.store.example.com |
Opens immediately |
store.example.com |
example.com |
Shows confirmation |
store.example.com |
blog.example.com |
Shows confirmation |
example.com |
example.com.evil.com |
Shows confirmation |
example.com |
evil-example.com |
Shows confirmation |
Safety
Trusted Links does not disable Minecraft's link warning globally.
- Only explicitly trusted hostnames can bypass confirmation.
- Only normal HTTP and HTTPS links are eligible.
- The real URL hostname is checked, not the visible link text.
- Malformed links and unsupported URL types keep Minecraft's normal behavior.
- If the configuration is missing or invalid, the mod safely uses an empty trust list.
Configuration
Trusted hostnames are saved in:
.minecraft/config/trusted-links.json
You can also view and remove trusted hostnames from the Mod Menu configuration screen.
You normally do not need to edit this file because hostnames can be added from the confirmation screen. If needed, it can also be edited manually while Minecraft is closed:
{
"trustedDomains": [
"hypixel.net",
"store.example.com"
]
}
Requirements
- Minecraft Java Edition 26.1.2
- Fabric Loader
- Fabric API
- Java 25
Trusted Links is client-side only. It works on multiplayer servers without being installed on the server.
Installation
Install Trusted Links and its listed dependencies with the Modrinth App, or place the downloaded JAR in your Fabric mods folder.
Open source
Trusted Links is open source under the MIT License. Issues and contributions are welcome on GitHub.
评论 0
登录后参与评分
还没有评论,来抢沙发吧