add anti-spam documentation

It describes how anti-spam works now and its future.
This commit is contained in:
Dmitry Verkhoturov
2023-01-08 14:30:55 -06:00
committed by Umputun
parent 82f27e6b63
commit 6a1b515ea9
2 changed files with 22 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
---
title: Anti-Spam
---
## How anti-spam works
Basic real-time bot protection relies on simply testing if user sent invisible input form field and then login is rejected as it's known to be a bot.
More sophisticated mechanism is discussed in the issue [#754](https://github.com/umputun/remark42/issues/754) but not yet implemented.
## How `cleanup` anti-spam works
During the `cleanup` command run, spam comments are detected and removed (if `--dry-run` parameter was not specified). Reaching score of 50 is considered as spam, and here are the scores:
- 12.5 points for each occurrence of the provided bad words (so that 4 bad words will result in 50 points)
- 10 points if user is in the provided list of bad users
- 10 points if comment has any links, and another 10 if there are more than 5 of them
- 20 points if comment score is 0 (e.g. nobody voted for it)
+4
View File
@@ -67,6 +67,10 @@
{
"title": "Gatsby Integration",
"href": "/manuals/integration-with-gatsby/"
},
{
"title": "Anti-Spam",
"href": "/manuals/spam/"
}
]
},