Fabric-GeoLogin

Quick rating

Community listing page, reviews here may not be monitored by the author.

Fabric-GeoLogin

By RanzeplayOwner

No reviews yet

A fabric server-side mod that restricts login countries in the real world

Mod Loaders
Minecraft

About

Description

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 to false if you don't want to let players to join when failing to validate their location.
  • useWhitelist: Countries in countries will be blocked from logging in if set to false, only the countries in countries are allowed to join if set to true.
  • 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 wildcard
    • xxx.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.