项目作者: voidstarr

项目描述 :
Limit number of accounts joining per IP address
高级语言: Java
项目地址: git://github.com/voidstarr/Altimeter.git
创建时间: 2021-05-30T09:19:02Z
项目社区:https://github.com/voidstarr/Altimeter

开源协议:

下载


Altimeter

Discord

Sponge API 7.3.x Plugin that limits the number of accounts that can connect from an IP address

The gist

A list exists per IP, each list can hold up to X accounts and each account will be removed from the queue until the TTL expires.
If the list fills for that IP, no more accounts can be logged in from that IP.

Definitions

  • TTL: Time to live

Commands

  • /altimeter: lists sub commands
  • /altimeter clear [all|x.x.x.x]: clear the all account list, or the account list associated with a given IP address (v4/v6)
  • /altimeter override x.x.x.x <limit>: set account limit for x.x.x.x to limit

Permissions

  • altimeter.override
  • altimeter.clear.ip
  • altimeter.clear.all

Configuration

  1. altimeter {
  2. # How many accounts from one IP can log in.
  3. accountLimit=5
  4. # How often accounts should be checked and cleared from IP lists.
  5. checkInterval {
  6. # DAYS, HOURS, MINUTES, or SECONDS
  7. unit=MINUTES
  8. value=5
  9. }
  10. # Override account limit for specific IPs
  11. limitOverrides=[
  12. {
  13. ip="127.0.0.1"
  14. limit=5
  15. }
  16. ]
  17. # How long after an account is added to the queue is it removed.
  18. ttl {
  19. # DAYS, HOURS, MINUTES, or SECONDS
  20. unit=DAYS
  21. value=30
  22. }
  23. }