mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-14 15:49:02 +00:00
account: add IP rate limiting for account creation
Add a configurable cooldown in seconds for which no further accounts can be created from the same IP.
This commit is contained in:
@@ -139,6 +139,10 @@ MINIMUM_ANONYMOUS_TORRENT_SIZE = 1 * 1024 * 1024
|
||||
# Relies on USE_RECAPTCHA. Set to 0 to disable.
|
||||
ACCOUNT_RECAPTCHA_AGE = 7 * 24 * 3600 # A week
|
||||
|
||||
# Seconds after which an IP is allowed to register another account
|
||||
# (0 disables the limitation)
|
||||
PER_IP_ACCOUNT_COOLDOWN = 24 * 3600
|
||||
|
||||
# Backup original .torrent uploads
|
||||
BACKUP_TORRENT_FOLDER = 'torrents'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user