简介
IpLogger 是一个面向 Fabric 的服务端模组。
它的主要功能是记录所有玩家登录时使用的 IP 地址。数据存储在服务器的 config/iplogger/IpLoggerData.json 文件中。命令仅对服务器 OP(管理员)可用。
使用场景示例包括:识别试图以其他玩家身份登录的用户(适用于离线服务器,请注意盗版行为不可接受),或发现拥有多个账号的玩家,因为这些账号通常会共享相同的 IP。
请注意,简单的 VPN 会导致存储错误的玩家 IP。本模组不会尝试检测玩家是否使用了 VPN 或追踪其真实家庭 IP——它仅保存控制台日志中可用的 IP 地址。
所有 IP 默认都会出现在服务器控制台的日志中,但为了查找所需信息(无论出于何种用途)而手动翻阅这些日志非常繁琐。本模组将使这一过程变得简单。
换句话说:本模组并未赋予服务器管理员任何他们原本无法获取的信息,只是让这些信息更容易访问。
开发者声明
理论上,此模组可被开发者用于收集公开 IP。开发者在此声明:除非你采取明确的操作(例如执行 /iplogger geolocate 命令),否则该模组不会将你的服务器玩家名称或 IP 发送到外部来源。
安装
将其放入服务端的 \mods 文件夹中。无需客户端模组。
命令
- /iplogger buildFromPastLogs - 建议在安装模组后首次运行时执行。它将读取服务器上所有的历史日志文件,提取所有用户的 IP 并将其添加到数据库中。如果未运行此命令,则只有从安装时刻起的新用户和 IP 才会可用。一旦运行过一次,就无需再次运行此命令。
- /iplogger getIPs [username] - 显示指定用户名用来登录服务器的所有 IP 地址。
- /iplogger getUsers [IP] - 显示曾经使用此 IP 登录服务器的所有用户。
- /iplogger removeIpFromUser [username] [IP] - 从用户记录中移除该 IP 地址。
- /iplogger getDuplicateIPs - 列出所有使用相同 IP 地址登录的玩家列表。共享 IP 的常见原因通常是居住在同一个家庭,或者是同一人的小号账号。
- /iplogger geolocate [IP] - 使用 iplocation.net 免费 API 提供该 IP 所在的国家/地区信息。
- /iplogger toggleDebugMode - 在服务器控制台中开启更详细的日志记录。这对模组开发者进行故障排除很有用……每次服务器启动/重启时,总会自动将 debugMode 重置为 false。
Introduction
IpLogger is a server-side mod for Fabric.
It's main purpose is storing all IP addresses that players use to log on from. The data is stored on the server under config/iplogger/IpLoggerData.json. Commands are only available for OPs on the server.
Examples of use-cases could be to identify players that try to log in as other players (for offline servers, note that piracy is not acceptable), or finding players with multiple accounts as these will share the same IP.
Remember that a simple VPN would result in storing the incorrect IP of a player. This mod makes no attempt to check if a player uses a VPN or to tunnel back to their home-IP - it only stores the IP available in the console logs.
All IPs are by default available in the server console logs, but reading through them to find necessary information (for whatever usecase you might have) is tedious. This mod will make this process simple.
In other words: this mod does not give a server administrator any information they don't already have access to, it just makes it more easily accessible.
Declaration from developer
This mod can in theory be used by the developer to collect public IPs. It is the declaration of the developer that the mod does not send your server's playernames or IPs outside to external sources without your explicit actions (such as by invoking the /iplogger geolocate command)
Installation
Put on server in \mods folder. No client side mod is necessary.
Commands
- /iplogger buildFromPastLogs - Recommended to run the first time you install the mod. Will read through all past logs file on the server to extract all users' IPs and add them to the database. If this command is not run, only users and IPs from the point of installation forward will be available. After running once, there is no need to run this command ever again.
- /iplogger getIPs [username] - Gives all the IPs that the given username has used to log in to the server from.
- /iplogger getUsers [IP] - Gives all the users that have ever logged in to the server using this IP.
- /iplogger removeIpFromUser [username] [IP] - Removes the IP address from the user.
- /iplogger getDuplicateIPs - Will give a list of all players that have signed in using the same IP address. Typical reasons for sharing an IP is either living in the same household or being alt-accounts of the same person.
- /iplogger geolocate [IP] - Uses the iplocation.net free API to give the country in which the given IP resides.
- /iplogger toggleDebugMode - Turns on more verbose logging in server console. Mostly useful for the mod dev to troubleshoot... Always sets back to debugMode=false on server startup/restart.
评论 0
登录后参与评分
还没有评论,来抢沙发吧