Abuse Protection
Map captcha
A code drawn on a map, handed to the player, to be copied before an account can be registered. A bot that speaks the protocol fluently still has to read a picture.
captcha:
enabled: false
# Characters in the code (3-8). Ambiguous ones (O/0, I/1/l) are never used.
length: 5
# Wrong answers before the connection is closed.
max-attempts: 3
The code is typed back with /captcha <code>, and /register is refused until it is. It costs a real player one glance and stops the registration floods that fill a database with accounts nobody will ever use.
The map goes in an empty hotbar slot. Whatever it displaces moves to a free slot or, with a full inventory, is kept on the server side with the player's data, never inside the map, and comes back when the map goes, including after a crash. The map cannot be used on blocks or entities, and crafting with it gives nothing.
Connection limits
Two different limits, because they answer two different questions:
| Setting | Counts | Stops |
|---|---|---|
security.ip-rate-limit | Failed logins from one address | Somebody guessing at a player's password |
security.account-rate-limit-max | Failed logins on one account, from any address, inside the same window (default 10) | The same guessing spread over many addresses. Past the limit the account takes no password, except from the address its owner last logged in from |
connection-limit.max-per-ip | Connections from one address, inside window seconds | A bot net cycling through names |
The last one is the one that was missing: a bot that registers rather than guesses never fails a login, so counting failures never sees it. Defaults are 6 connections per address per 60 seconds.
IPv6 addresses are counted, limited and banned per /64, so one subscriber cannot dodge the limits by changing address inside their own block.