diff options
author | 2024-02-27 13:22:05 +0100 | |
---|---|---|
committer | 2024-02-27 12:22:05 +0000 | |
commit | 9cadc764b389df970c767608e7a061f3bd777dfa (patch) | |
tree | e49218fff3af5800b5305720a04a4f74e7b5c2cb /docs/configuration | |
parent | [chore]: Bump github.com/tdewolff/minify/v2 from 2.20.17 to 2.20.18 (#2689) (diff) | |
download | gotosocial-9cadc764b389df970c767608e7a061f3bd777dfa.tar.xz |
[feature] Add experimental `instance-federation-spam-filter` option (#2685)
* [chore] Move `visibility` to `filter/visibility`
* [feature] Add experimental instance-federation-spam-filter option
Diffstat (limited to 'docs/configuration')
-rw-r--r-- | docs/configuration/instance.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/configuration/instance.md b/docs/configuration/instance.md index 0be3d52be..36181268b 100644 --- a/docs/configuration/instance.md +++ b/docs/configuration/instance.md @@ -39,6 +39,43 @@ instance-languages: [] # Default: "blocklist" instance-federation-mode: "blocklist" +# Bool. Enable spam filtering heuristics for messages entering your instance +# via the federation API. Regardless of what you set here, basic checks +# for message relevancy will still be performed, but you can try enabling +# this setting if you are being spammed with unwanted messages from other +# instances, and want to more strictly filter out spam messages. +# +# THIS IS CURRENTLY AN EXPERIMENTAL SETTING, AND MAY FILTER OUT LEGITIMATE +# MESSAGES, OR FAIL TO FILTER OUT SPAMMY MESSAGES. It is recommended to +# only enable this setting when the fediverse is in the midst of a spam +# wave, and you need to batten down the hatches to keep your instance usable. +# +# The decision of whether a message counts as spam or not is made based on +# the following heuristics, in order, where receiver = the account on your +# instance that received a message in their inbox, and requester = the +# account on a remote instance that sent the message. +# +# First, basic relevancy checks +# +# 1. Receiver follows requester. Return OK. +# 2. Statusable doesn't mention receiver. Return NotRelevant. +# +# If instance-federation-spam-filter = false, then return OK now. +# Otherwise check: +# +# 3. Receiver is locked and is followed by requester. Return OK. +# 4. Five or more people are mentioned. Return Spam. +# 5. Receiver follow (requests) a mentioned account. Return OK. +# 6. Statusable has a media attachment. Return Spam. +# 7. Statusable contains non-mention, non-hashtag links. Return Spam. +# +# Messages identified as spam will be dropped from your instance, and not +# inserted into the database, or into home timelines or notifications. +# +# Options: [true, false] +# Default: false +instance-federation-spam-filter: false + # Bool. Allow unauthenticated users to make queries to /api/v1/instance/peers?filter=open in order # to see a list of instances that this instance 'peers' with. Even if set to 'false', then authenticated # users (members of the instance) will still be able to query the endpoint. |