2016-01-09 14:30:34 -05:00
|
|
|
# Akismet
|
|
|
|
|
2019-07-08 19:14:29 -04:00
|
|
|
GitLab leverages [Akismet](https://akismet.com/) to protect against spam. Currently
|
2016-07-18 19:17:43 -04:00
|
|
|
GitLab uses Akismet to prevent the creation of spam issues on public projects. Issues
|
2020-05-26 08:08:22 -04:00
|
|
|
created via the web UI or the API can be submitted to Akismet for review.
|
2016-01-09 14:30:34 -05:00
|
|
|
|
2016-07-18 19:17:43 -04:00
|
|
|
Detected spam will be rejected, and an entry in the "Spam Log" section in the
|
|
|
|
Admin page will be created.
|
2016-07-16 12:42:44 -04:00
|
|
|
|
2020-05-26 08:08:22 -04:00
|
|
|
Privacy note: GitLab submits the user's IP and user agent to Akismet.
|
|
|
|
|
|
|
|
NOTE: **Note:**
|
|
|
|
In GitLab 8.11 and later, all issues are submitted to Akismet.
|
|
|
|
In earlier GitLab versions, this only applied to API and non-project members.
|
2016-01-09 14:30:34 -05:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
To use Akismet:
|
|
|
|
|
2019-01-24 01:52:33 -05:00
|
|
|
1. Go to the URL: <https://akismet.com/account/>
|
2018-11-12 19:39:21 -05:00
|
|
|
1. Sign-in or create a new account.
|
|
|
|
1. Click on **Show** to reveal the API key.
|
2019-12-17 01:07:59 -05:00
|
|
|
1. Go to **Admin Area > Settings > Reporting** (`/admin/application_settings/reporting`).
|
|
|
|
1. Check the **Enable Akismet** checkbox.
|
2018-11-12 19:39:21 -05:00
|
|
|
1. Fill in the API key from step 3.
|
|
|
|
1. Save the configuration.
|
2016-01-09 14:30:34 -05:00
|
|
|
|
|
|
|
![Screenshot of Akismet settings](img/akismet_settings.png)
|
2016-08-04 13:29:43 -04:00
|
|
|
|
|
|
|
## Training
|
|
|
|
|
2020-05-26 08:08:22 -04:00
|
|
|
NOTE: **Note:**
|
|
|
|
Training the Akismet filter is only available in GitLab 8.11 and later.
|
2016-08-04 13:29:43 -04:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-11-12 19:39:21 -05:00
|
|
|
When an entry is recognized as spam, it is rejected and added to the Spam Logs.
|
2016-08-04 13:29:43 -04:00
|
|
|
From here you can review if they are really spam. If one of them is not really
|
2018-11-12 19:39:21 -05:00
|
|
|
spam, you can use the **Submit as ham** button to tell Akismet that it falsely
|
2016-08-04 13:29:43 -04:00
|
|
|
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
|
2016-08-15 19:11:56 -04:00
|
|
|
to also submit this to Akismet. The **Submit as spam** button will only appear
|
2016-08-04 13:29:43 -04:00
|
|
|
to admin users.
|
|
|
|
|
|
|
|
![Screenshot of Issue](img/submit_issue.png)
|
|
|
|
|
|
|
|
Training Akismet will help it to recognize spam more accurately in the future.
|