debian-mirror-gitlab/doc/integration/akismet.md

58 lines
1.9 KiB
Markdown
Raw Normal View History

2016-04-02 18:10:28 +05:30
# Akismet
2016-09-13 17:45:13 +05:30
> *Note:* Before 8.11 only issues submitted via the API and for non-project
members were submitted to Akismet.
2016-04-02 18:10:28 +05:30
GitLab leverages [Akismet](http://akismet.com) to protect against spam. Currently
2016-09-13 17:45:13 +05:30
GitLab uses Akismet to prevent the creation of spam issues on public projects. Issues
created via the WebUI or the API can be submitted to Akismet for review.
Detected spam will be rejected, and an entry in the "Spam Log" section in the
Admin page will be created.
2016-04-02 18:10:28 +05:30
Privacy note: GitLab submits the user's IP and user agent to Akismet. Note that
adding a user to a project will disable the Akismet check and prevent this
from happening.
## Configuration
To use Akismet:
2019-03-02 22:35:43 +05:30
1. Go to the URL: <https://akismet.com/account/>
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Sign-in or create a new account.
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Click on **Show** to reveal the API key.
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Go to Applications Settings on Admin Area (`admin/application_settings`)
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Check the **Enable Akismet** checkbox
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Fill in the API key from step 3.
2016-04-02 18:10:28 +05:30
2019-02-15 15:39:39 +05:30
1. Save the configuration.
2016-04-02 18:10:28 +05:30
![Screenshot of Akismet settings](img/akismet_settings.png)
2016-09-13 17:45:13 +05:30
## Training
> *Note:* Training the Akismet filter is only available in 8.11 and above.
As a way to better recognize between spam and ham, you can train the Akismet
filter whenever there is a false positive or false negative.
2019-02-15 15:39:39 +05:30
When an entry is recognized as spam, it is rejected and added to the Spam Logs.
2016-09-13 17:45:13 +05:30
From here you can review if they are really spam. If one of them is not really
2019-02-15 15:39:39 +05:30
spam, you can use the **Submit as ham** button to tell Akismet that it falsely
2016-09-13 17:45:13 +05:30
recognized an entry as spam.
![Screenshot of Spam Logs](img/spam_log.png)
If an entry that is actually spam was not recognized as such, you will be able
to also submit this to Akismet. The **Submit as spam** button will only appear
to admin users.
![Screenshot of Issue](img/submit_issue.png)
Training Akismet will help it to recognize spam more accurately in the future.