aboutsummaryrefslogtreecommitdiffstats
path: root/docs/config.md
diff options
context:
space:
mode:
authorofernander <oliver@fernander.net>2026-04-12 18:40:01 -0700
committerofernander <oliver@fernander.net>2026-04-12 18:40:01 -0700
commit7033851e42d1412c34c4022f6a8dd1632c64586e (patch)
tree6531d20073126d8659fe4de93d22d7fc2af5f4f3 /docs/config.md
parent76ccc5c1c8723df586cd4b4fc3d692cb2a7d73f6 (diff)
downloadslskd-7033851e42d1412c34c4022f6a8dd1632c64586e.tar.gz
feat: add username reg pattern matching to blacklist group
Adds a field to that accepts a list of regular expressions matched against usernames.
Diffstat (limited to 'docs/config.md')
-rw-r--r--docs/config.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index 6ba449f0..1b77a674 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -489,6 +489,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.
@@ -499,6 +501,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>
```