Simple plugin to exclude access from certain countries or IP addresses. You can also temporarily ban users after a certain number of failed login attempts.
- Download the plugin from the GitHub repository.
- Upload the plugin to the
plugins
directory.
The plugin can be configured in the config.php
file. The following options are available:
license-key
: The license key for GeoLite2.permit-countries
: An array of country codes that are allowed to login.allowed-ips
: An array of IP addresses that are allowed to login.check-only-allowed-ips
: If set totrue
, only the IP addresses in theallowed-ips
array are allowed to login.discord-webhook
: The Discord webhook URL to send notifications to.download-url
: The URL to download the GeoLite2 database from.temporarily-ban-threshold
: The number of failed login attempts before temporarily banning the user.temporarily-ban-days
: The number of days to temporarily ban the user for.
excludeaccess.command
- Allows the user to use the /excludeaccess
command. Defaults to only operators.
excludeaccess.bypass
- Allows the user to bypass the restrictions. Defaults to only operators.
Checking for the excludeaccess.bypass
permission is unavailable if LuckPerms is not installed.
/excludeaccess reload
- Reloads the configuration file.
This plugin is licensed under the GNU General Public License v3.0. You can view the license here.