介绍
🛡️ IP Whitelist
A lightweight, server-side Fabric mod that lets admins control who joins based on their IP addresses.
By default, the mod is disabled when first installed to prevent you from locking yourself out. Join your server, then run /ipwhitelist add <yourname> followed by /ipwhitelist on to secure your server.
Features
- IP-Based Security: Blocks connections before the player even joins the world.
- Private servers friendly: Doesn’t rely on UUIDs or other authentication methods that won’t work on offline-mode servers.
- Simple & Lightweight: Basic protection that works without having to set up complex authentication systems.
Commands
All commands require OP.
|Command|Description|
|—|—|
|/ipwhitelist on|Enables the IP check. Players not on the list will be kicked.|
|/ipwhitelist off|Disables the check. Anyone can join.|
|/ipwhitelist add <player>|Grabs the IP of an online player and adds it to the list.|
|/ipwhitelist addip <ip>|Manually adds a raw IP address (e.g., 1.2.3.4) to the list.|
|/ipwhitelist remove <player>|Removes the IP of an online player from the list.|
|/ipwhitelist removeip <ip>|Removes a specific IP from the list (supports tab-completion).|
|/ipwhitelist list|Displays all currently whitelisted IP addresses.|
|/ipwhitelist reload|Forces a refresh of the config and whitelist files from the disk.|
Configuration
The mod creates a folder at /config/ipwhitelist/ with two files:
ip-whitelist.txt: A simple list of allowed IPs (one per line). You can edit this manually and run/ipwhitelist reload.ip-whitelist-config.properties: Stores theenabled=true/falsestate.
常见问题
IP Whitelist (Fabric) 支持哪些 Minecraft 版本?
IP Whitelist (Fabric) 支持 Minecraft Java 版 1.21.10–1.21.11,共 2 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
IP Whitelist (Fabric) 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分