diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-04-23 18:40:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-23 18:40:41 -0500 |
| commit | fc722e4a78aa5369fcd5ca0d8e88bd98d874a1d8 (patch) | |
| tree | 1ebad506bc42f3bc20e6825bf9f03715031c06ba /docs | |
| parent | 7961741f740abd240754ff6e39cda6d69f727268 (diff) | |
| parent | 2f20ac833dca19e87e7980ac83f94206685409d9 (diff) | |
| download | slskd-fc722e4a78aa5369fcd5ca0d8e88bd98d874a1d8.tar.gz | |
Merge pull request #1713 from slskd/blacklist-regex
Allow blacklisting of username patterns
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/config.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md index aac89f9a..b4e8fa47 100644 --- a/docs/config.md +++ b/docs/config.md @@ -491,6 +491,8 @@ Private and chat room messages from blacklisted users are also ignored. Users can be blacklisted by adding their username to the `members` list. Additionally, users can be blacklisted by IP address, or range of addresses by adding a CIDR entry to the `cidrs` list. +The `patterns` list accepts regular expressions matched against usernames. Any username matching one or more patterns will be blacklisted. This is useful for blocking bots or automated clients that share a common username prefix or suffix — for example, `^user` would block any username starting with `user`, and `_bot$` would block any username ending with `_bot`. Patterns follow the same case sensitivity rules as other user-defined regular expressions in the application — case insensitive by default, controlled by the `flags.case_sensitive_regex` option. + Users added to the blacklist will be blocked from enqueueing any new files. Any existing active or queued transfers will need to be cancelled manually. A managed blacklist file may also be used to achieve the same effects. Read more about this in the [Managed Blacklist](#managed-blacklist) section below. @@ -501,6 +503,8 @@ groups: blacklisted: members: - <username to blacklist> + patterns: + - <regular expression to match against usernames> cidrs: - <CIDR to blacklist, e.g. 255.255.255.255/32> ``` |
