This page is a translated version of the page Extension:Antispam and the translation is 43% complete.
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced-invert.svg
Anti-spam by CleanTalk
リリースの状態: 保守されていない
実装 利用者アクティビティ , ページの操作
説明 Client extension for cloud anti-spam service CleanTalk.org.
作者 Denis Shagimuratov
最新バージョン 2.3 (2019-12-17)
MediaWiki 1.19+
PHP PHP 5.3+
データベースの変更 はい
ライセンス GNU 一般公衆利用許諾書 2.0 以降

  • $wgCTAccessKey
  • $wgCTNewEditsOnly

  • cleantalk-bypass

The Anti-spam extension is a client-side application for a commercial cloud anti-spam service, cleantalk.org.

Anti-Spam service

The CleanTalk Cloud Service provides automatic and invisible protection from spam for websites. CleanTalk analyzes user behavior and evaluates the parameters of a completed form.

When installed on your website the Anti-Spam Module captures the behavior parameters of a visitor or a spambot. These parameters are being assessed and the service makes a decision — to post the visitor's message or to define it as spam and reject it. Based on such checks, the service forms its own list of email addresses used by spambots. Likewise, visitor registrations are being checked too. The service adds not only email addresses to the global blacklist but also IP addresses and domains of the websites that are promoted through spam mailout.

Spam Firewall feature

This option allows blocking spam-bots before they access MediaWiki content. CleanTalk collects spam bots activity data on websites, IP addresses of the most active spam bots are added to the Spam Firewall database. The service intercepts any HTTP(POST/GET) requests to a site and IP address it contains. If an IP address is included in CleanTalk blacklist of most spam active IPs, it will get a special page, if it is a real visitor then it proceeds to the site. That is completely transparent to the visitors. The results of Spam FireWall are logged and available in your control panel.

Real-Time Email Address Existence Validation

To validate that users sign up with their real email address, the CleanTalk server will perform email account existence checks using SMTP response.

Private blacklist/whitelist

Automatically blocks comments and registrations from your private black IP/email address list. This option helps to strengthen the protection from 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. The extension allows blocking or whitelisting emails for registration using wildcards, for example, "*@mail.com" will block/allow every address ending on @mail.com.

Blocking users by country

The external service can be used to automatically block comments and registrations from specific countries.

Stoplist by words

Comments that contain specific words can be forbidden.



  • ダウンロードして、ファイルをextensions/フォルダー内のAntispamという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    require_once "$IP/extensions/Antispam/Antispam.php";
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。


To run extension

  • Get Access key

Place the Access key in the LocalSettings.php with the variable $wgCTAccessKey. Note : you need to put it after loading the extension using require_once or wfLoadExtension().

  • Set as you wish true or false the parameter


  • 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, the extension will work regardless of the protocol. 

  • After installation, on creation of a test user, I get error: Fatal exception of type "Wikimedia\Rdbms\DBQueryError". How to fix?
    • temporarily add
      require_once "$IP/extensions/Antispam/Antispam.php";
      into LocalSettings.php, verify that the extension was loaded on the version page, then replace with
      wfLoadExtension( 'Antispam' );
    • Don't set the key in the extensions/Antispam/Antispam.php file, but in LocalSettings.php file as variable $wgCTAccessKey below the load instruction.