Auto ban anonymous IP:

* New settings: "Ban anonymous user's IP when user is banned from a chatroom":
  * if enabled, every time a streamer bans an anonymous user, it will ban its IP on the chat server,
  * banned IPs are logged on disk, so server's admin can use them to feed fail2ban (for example),
  * option disabled by default, because could be used to create trapped-rooms on public servers
This commit is contained in:
John Livingston
2023-09-22 18:17:54 +02:00
parent 812eb89856
commit d80cedfee5
9 changed files with 176 additions and 3 deletions

View File

@ -83,7 +83,7 @@ Please read
private: true
})
// ********** Moderation and advances customization
// ********** Advanced channel customization
registerSetting({
type: 'html',
private: true,
@ -197,6 +197,14 @@ Please read
descriptionHTML: loc('no_anonymous_description'),
private: false
})
registerSetting({
name: 'auto-ban-anonymous-ip',
label: loc('auto_ban_anonymous_ip_label'),
type: 'input-checkbox',
default: false,
descriptionHTML: loc('auto_ban_anonymous_ip_description'),
private: true
})
// ********** Theming
registerSetting({