From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
Anti-spam by CleanTalk

Release status:Extension status stable

ImplementationTemplate:Extension#type User activity, Page action
DescriptionTemplate:Extension#description Client extension for cloud anti-spam service CleanTalk.org.
Author(s)Template:Extension#username Denis Shagimuratov
Latest versionTemplate:Extension#version 1.9 (2018-08-28)
MediaWikiTemplate:Extension#mediawiki 1.19+
PHPTemplate:Extension#php PHP 5.3+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
* $wgCTAccessKey
  • $wgCTNewEditsOnly
Added rightsTemplate:Extension#rights
* cleantalk-bypass
Hooks usedTemplate:Extension#hook

Translate the Antispam extension if it is available at translatewiki.net

Check usage and version matrix.

The Anti-spam extension protects MediaWiki against spambots signups and edits. It's a client-side application for cloud anti-spam service cleantalk.org. CleanTalk provides transparent antispam protection, with detailed statistics of all entering comments and logins. You can always be sure that there are no errors.

We have developed anti-spam for MediaWiki that would provide maximum protection from spambots and you can provide for your visitors a simple and convenient form of edits/registrations without annoying CAPTCHAs and puzzles. Used to detect spam multistage test that allows us to block up to 100% of spambots.

The anti-spam method offered by CleanTalk allows switching from the methods that trouble the communication (CAPTCHA, question-answer etc.) to a more convenient one.

CleanTalk provides premium anti-spam for MediaWiki, please look at the pricing. We try to provide the service at the highest level and we can not afford to offer a free version of our service, as this will immediately affect the quality of providing anti-spam protection. Paying for a year of service, you save a lot more and get:

  • Up to 100% protection from spambots.
  • Simple and convenient form of commenting/registrations without CAPTCHA.
  • Always actual and regular updates.
  • Technical support.

Low false/positive rate

This plugin uses multiple anti-spam tests to filter spambots with lower false/positive rate as possible. Multiple anti-spam tests avoid false/positive blocks for real website visitors even if one of the tests failed.

How effective is CleanTalk

Accurately blocking spam is not an easy thing to do, but CleanTalk has a very low proven False/Positive rate. Here is actual statistics on false positives for all customers.

  • Registrations - 0.007%
  • Comments - 0.001%
  • Contact forms - 0.001%
  • Orders - 0.008%
  • Spam attacks log

Service CleanTalk (this plugin is a client application for CleanTalk anti-spam service) records all filtered comments, registration and other spam attacks in the "Log of spam attacks" and stores the data in the log up to 45 days. Using the log, you can ensure reliable protection of your website from spam and no false/positive filtering.

Spam FireWall

CleanTalk has got an advanced option "Spam FireWall", this option allows blocking the most active spambots before they get access to a website. It prevents loading of pages of the website by spambots, so your web server doesn't need to perform all scripts on these pages. Also, it prevents scanning of pages of the website spambots. Therefore Spam FireWall significantly can reduce the load on your web server.

Spam FireWall also makes CleanTalk the two-step protection from spambots. Spam FireWall is the first step and it blocks the most active spambots, CleanTalk Anti-Spam is the second step and it checks all other requests on the website at the moment before submitting comments/registers and etc.

Private blacklists

Personal blacklists are very flexible and powerful tool, you can block or allow IP address, email address or mask e-mail (*@mail.com - will block/allow every address ending on @mail.com)

Anti-Spam service

Automatically block comments and registrations from your private black IP/email address list. This option helps to strengthen the protection from a manual spam or block unwanted comments from users. You can add not only the certain IP addresses but also a separate subnet to your personal blacklist.


It allows you to add individual IP addresses and subnets to SpamFireWall. It blocks the attacks from IP addresses which are not included in the SFW base yet. This option can help to block HTTP/HTTPS DDoS, SQL, brute force attacks and any others that made it through the HTTP/HTTPS. You can add not only the certain IP addresses but also a separate subnet to your personal blacklist.

Blocking users by country

Automatically block comments and registrations from the countries you have set a ban for. This option is useful in cases of manual spam protection and for protection enhancement. If your site is not intended for an international audience and you do not expect comments/users from other countries.

Blocking comments by "stop words"

You can block comments which contain "stop words" to enhance spam filtering and messages with obscene words blocking. You can add particular words or phrases.



  • Download and place the file(s) in a directory called Antispam in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Antispam/Antispam.php";
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

To run extension

  • Get Access key
  • Type Access key in parameter
  • Set true or false in parameter

Frequently Asked Questions[edit]

  • Should I change anything in the extension's settings or in my CleanTalk Control Panel when I switch my website from HTTP to HTTPS or vice versa?

No. You don't need to change anything in the extension's settings or in your CleanTalk Control Panel. The extension will work regardless of the protocol.