Compatibility
Minecraft: Java Edition
1.21.7–1.21.10
1.21.4
Platforms
Supported environments
Creators
Details
GeoLogin
A fabric server-side mod that restricts login countries in the real world
Configuration
File path config/geologin.json
countries: The list of ISO ALPHA-2 country codes.allowDefault: Fallback status, set tofalseif you don't want to let players to join when failing to validate their location.useWhitelist: Countries incountrieswill be blocked from logging in if set tofalse, only the countries incountriesare allowed to join if set totrue.cacheExpireMinutes: IP address will be cached to prevent checking for multiple times, set the field to control the recheck time.ipWhitelist: IP addresses that bypasses country check directly, formats:xxx.xxx.xxx.xxx: Single IP address, allow*for wildcardxxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy: IP address segment
allowJoinWhenGeoFail: Allow players to join when the geo-location service fails.allowPrivateAddress: Allow players with private IP addresses to join, range:- 10.0.0.0 - 10.255.255.255
- 172.16.0.0 - 172.31.255.255
- 192.168.0.0 - 192.168.255.255
allowLocalAddress: Allow players with local IP addresses to join.
Provider
We use IpLocation API to check the location of clients.


