Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A MediaWiki extension that adds support for Akismet spam filtering.
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
includes
test
.gitignore
57_spams.sql
Akismet.alias.php
Akismet.hooks.php
Akismet.i18n.php
Akismet.php
COPYING
README.md
SpecialAkismet.php
table.sql

README.md

MediaWiki-Akismet

This is a project to add Akismet support to MediaWiki. It will currently run all page edits through the Akismet servers and disallow saving if Akismet decides an edit is spam. There is the beginning of an admin interface to mark edits as spam or ham, but it doesn't allow submitting to the Akismet servers.

Requirements

MediaWiki-Akismet requires a working installation of MediaWiki, PHP 5, and an Akismet account. The extension has been tested with MediaWiki 1.19 and PHP 5.4, but it may work on earlier versions.

Installing

  1. Install MediaWiki and verify that it's working.

  2. Create the directory INSTALLDIR/extensions/Akismet on the server and copy the MediaWiki-Akismet files to the directory.

  3. Edit LocalSettings.php in the MediaWiki root directory. Add these three lines near the end of the file, but before the ?>:

    // Akismet extension
    include( $IP . '/extensions/Akismet/Akismet.php' );
    $wgMWAkismetKey = '1234567890ab';
    $wgMWAkismetURL = 'http://www.example.com/';
  4. Edit the $wgMWAkismetKey and $wgMWAkismetURL variables to match the API key you got from Akismet and the location of your MediaWiki installation. If you don't have an Akismet API key yet, you can create a free or paid account on the Akismet site and get one.

  5. Run php ./maintenance/update.php on the command line from the top MediaWiki directory. This will create the akismet_edits database table.

  6. Make page edits and let Akismet catch the spam.

License

This code is released under the GPL 2 License. See the COPYING file for details.

Something went wrong with that request. Please try again.