Download plugin file 2.2.zip.
Previous version 2.1.zip.

CleanTalk anti-spam setup on MediaWiki 

 

 

 

Mediawiki 1.32 and older.

 

  • Download the archive.
  • Unzip the archive and extract Antispam folder to MEDIAWIKI_ROOT/extensions/
  • Add the following code at the bottom of your MEDIAWIKI_ROOT/LocalSettings.php
 

require_once "$IP/extensions/Antispam/Antispam.php";

  • Fill the Access key in MEDIAWIKI_ROOTe/extenstions/Antispam/Antispam.php

 

$wgCTAccessKey = 'ACCESS_KEY';

 

Make a test registration with email stop_email@example.com. Mediawiki spam registration block

Congratulations. Anti-spam is installed!

 

Mediawiki 1.33 and newer.

 

  • Download the archive.
  • Unzip the archive and extract Antispam folder to MEDIAWIKI_ROOT/extensions/
  • Add the following code at the bottom of your MEDIAWIKI_ROOT/LocalSettings.php
 

wfLoadExtension( 'Antispam' );

  • Fill the Access key in MEDIAWIKI_ROOTe/extenstions/Antispam/extension.json

 

  "CTAccessKey": {

       "value": "YOUR_KEY"

 

Make a test registration with email stop_email@example.com. Mediawiki spam registration block

Congratulations. Anti-spam is installed!

 

 

CleanTalk SpamFireWall setup

 

The CleanTalk SpamFireWall manages and filters all inbound HTTP traffic to protect web sites from spam bots and to reduce the load on the web servers.

For Mediawiki 1.32 and older:

  • Open file "/extensions/Antispam/Antispam.php"
  • Find the parameter: "$wgCTSFW = false" and change setting false on true.

 

For Mediawiki 1.33 and newer:

  • Open file "/extensions/Antispam/extension.json"
  • Find the parameter: "CTSFW": { "value": false and change setting false on true.

To test if SpamFireWall is working just add /?sfw_test_ip=10.10.10.10 to your site name. Example www.yoursitename.domain/?sfw_test_ip=10.10.10.10 (you must see blocking screen)

Attention! You should test SFW with incognito mode switched on. To enable incognito mode press Ctrl+Shift+N for Chrome, Opera and Safari browsers; press Ctrl+Shift+P for Firefox, Internet Explorer and Microsoft Edge.

 

Description of plugin settings

 

 Examples are for Mediawiki 1.32 and older. Options in file "/extensions/Antispam/Antispam.php". For Mediawiki 1.33 and newer options will be in file "/extensions/Antispam/extension.json" and will not have $wg at the beginning (for example $wgCTCheckNoConnect will be equal CTCheckNoConnect in the newer versions).

 

$wgCTCheckNoConnect = true/false;

Check registrations, when there are the errors with connection to service:

  • true - option enabled;
  • false - option disabled.

 

 

$wgCTServerURL = 'http://moderate.cleantalk.org/api2.0';

URL to CleanTalk Cloud.

 

 

$wgCTShowLink = true;

Show link to CleanTalk: enabling this option places a small link under the comment form that lets others know what antispam tool protects your site.

 

 

$wgCTNewEditsOnly = true/false;

  • check new edits only;
  • check all edits or new edits only.

 

 

$wgCTMinEditCount = 10;

Minimal edits count to skip edit checking. Checking will skipped for users with getEditCount() more than this value. Note: It doesn'f affect when $wgCTNewEditsOnly == true

 

 

$wgGroupPermissions['sysop']['cleantalk-bypass'] = true;

Skip edit test for Administrators.

 

 

 

Please go to Dashboard to see the anti-spam status, add new websites or manage existing ones!

 

Please check your email to get account password.

Perhaps it would also be interesting