介绍
IpLock
A server-side Fabric mod that prevents account takeovers on offline-mode Minecraft servers by binding each username to the IP address it first joined from.
How it works
When a player joins for the first time, their username is permanently bound to their IP address. If the same username later connects from a different IP, that IP is immediately banned and the connection is rejected. This makes it effectively impossible to impersonate an existing player from a different machine.
- First join — username is bound to the connecting IP, player joins normally.
- Same IP — player joins normally.
- Different IP — connection is rejected and the new IP is banned.
Data is stored in iplock/bindings.json and iplock/bans.json inside the server’s run directory.
Commands
All commands require operator level 3 (admin).
| Command | Description |
|—|—|
| /iplock list | Show all username → IP bindings |
| /iplock bans | Show all banned IPs and which username they tried to use |
| /iplock unban <ip> | Remove an IP from the ban list |
| /iplock reset <username> | Delete a username’s IP binding (allows them to re-bind from a new IP) |
常见问题
UsernameIpLock 支持哪些 Minecraft 版本?
UsernameIpLock 支持 Minecraft Java 版 1.21–1.21.11,共 12 个版本,可用的加载器:Fabric / Spigot。下载时注意选择和你游戏版本一致的文件。
UsernameIpLock 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Spigot,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分