Release status: stable
|Description||Sends all edits and uploads from new users to moderation.|
|Latest version||1.1.0 (2017-10-16)|
|License||GNU General Public License 3.0 or later|
Translate the Moderation extension if it is available at translatewiki.net
|Check usage and version matrix.|
The Moderation extension provides protection against vandalism for small and medium wikis.
This is one of the most effective anti-vandal protection methods and has very little impact on legitimate users.
- How does it work?
- Every edit (or image upload) by a new user is being sent to moderation.
- Until the moderator approves this edit, the page is unchanged. Pending edit is neither in page history nor on RecentChanges.
- The user can see his/her edit and continue editing his/her own version of the page.
- How do the admins moderate?
- New special page is provided (Special:Moderation). It's much like the RecentChanges, but has "Approve", "Reject", "Approve all" and "Reject all" buttons.
- Rejected edits go into the rejected archive.
- Approved edits are applied normally.
- Logs "who approved what" are maintained. Only the moderators can see them.
- If edit conflict is detected and it can't be resolved automatically, the moderator has the Merge button to apply the edit manually.
- Why is it good?
- New users are not discouraged by annoying captchas, phone number verifications, etc. They edit normally, like they would do in MediaWiki without moderation.
- Blocks become practically obsolete. And blocks are not good (consider the chance of hitting a legitimate user with a range block, or inability to allow good edits from a not-very-adequate user who sometimes has the urge to vandalize a page or two).
- Vandalism out of "wanting to be noticed" is discouraged. Noone would sit for 5 hours looking for new and new proxies to make admin angry, if it's known that all those actions are not a problem.
- Vandalism methods like "vandalizing one page from two accounts to prevent one-click rollback" are no longer effective.
- Website can operate in anonymous networks like TOR or I2P.
Does MediaWiki have other counter-vandalism methods? In brief - not really.
MediaWiki was developed for Wikipedia. At any given time, Wikipedia has hundreds of volunteers willing to revert vandalism in real time. Almost every other wiki besides Wikipedia doesn't have that kind of advantage. The built-in counter-vandalism idea of MediaWiki is that vandalism takes more time than reverting it. Normally that's true, but this does a poor job at discouraging vandalism, and the admins still have to check for vandalism in real time, even if the reverting itself doesn't take much of their time.
There are three known methods of fighting vandalism:
- Make all edits hard. For example, Lurkmore.to imposes a strong captcha on all edits from new users, and it takes a lot of edits to finally be able to edit without the captcha. Therefore the vandal has to spend a lot of time to do a handful of edits.
- The obvious minus is that all legitimate users have to bypass the captcha as well, which could discourage minor edits like spelling fixes.
- Enforce user identification - for example, login via Facebook. If the social network verifies that all its users have a valid mobile phone number, then each vandalism attempt requires the vandal to go to the shop and buy a new SIM card. This method is extremely effective, though eliminates the anonymous editing and turns away the users who don't have an account in any supported social network.
- A strong minus of this method is the impact on users' privacy. In non-democratic countries editing a page on politics can result in government trying to identify and persecute the user. For example, Lurkmore.to was contacted by Russian "anti-extremist special force" with demands to disclose information about the authors of pages about Ramzan Kadyrov and Molotov cocktail.
- Mitigate the results of vandalism. For example, a user can create 100 pages with offensive titles, but they can all be deleted by two clicks in Extension:Nuke. Moderation extension belongs to this category.
Is this extension stable?
This extension is stable. It has been deployed in production on Russian Uncyclopedia (absurdopedia.net) since November 2014.
- newest version of MediaWiki,
- MediaWiki 1.27 (LTS).
- Check-out the sources with
git clone https://github.com/edwardspec/mediawiki-moderation.gitand place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'Moderation' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
- Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
- Parameters for LocalSettings.php:
- If set to false, then new edits are applied as usual (not sent to moderation). Default: true.
- Time (in seconds) after which rejected edit could no longer be approved. Default: 2 weeks.
- User rights:
- If the user has this right, his/her edits are applied as usual (not sent to moderation).
- Allows access to Special:Moderation.
- Allows to see IPs of registered users on Special:Moderation.
- Default settings are:
- By default, two groups are created: moderator (has
moderationright) and automoderated (has
- By default, group checkuser has
- By default, two groups are created: moderator (has
require_once "$IP/extensions/Moderation/Moderation.php"; $wgGroupPermissions['sysop']['moderation'] = true; # Allow sysops to use Special:Moderation $wgGroupPermissions['sysop']['skip-moderation'] = true; # Allow sysops to skip moderation $wgGroupPermissions['bot']['skip-moderation'] = true; # Allow bots to skip moderation $wgGroupPermissions['checkuser']['moderation-checkuser'] = false; # Don't let checkusers see IPs on Special:Moderation $wgAddGroups['sysop'] = 'automoderated'; # Allow sysops to assign "automoderated" flag $wgRemoveGroups['sysop'] = 'automoderated'; # Allow sysops to remove "automoderated" flag
Additional anti-vandalism tips
In order to prevent vandalism, the following additional measures should be applied:
- Absolute MUST for any small/medium wiki (with or without the moderation): moving pages must be restricted to a trusted group. Page moves are currently not intercepted by Extension:Moderation, and they are a popular type of vandalism.
- Registering new accounts with offensive names is still a way for a vandal to show itself in the RecentChanges. A simple solution is to remove newusers log from RecentChanges:
$wgLogRestrictions["newusers"] = 'moderation';
Recommended use / good practices
The following good-practices are advised:
- Only vandalism should be Rejected. Not-so-good edits with good intentions (e.g. adding excessive plot details into the Wikipedia article about film) are better made Approved and then reverted as usual. This way the author is not offended and the text is saved in page history, viewable by anyone.
- Any user that is deemed legitimate (does N good edits) should be granted
$wgAutopromoteis NOT recommended, as it motivates the vandals to do many very-minor edits (e.g. adding interwiki). Better grant the flag manually for one good edit and not grant it for 30 useless-edits-made-for-count.
- Abstain from using blocks. Don't protect pages "just in case", except maybe for important templates.
- Allow the full rehabilitation of users with a bad history of editing. Their useful edits to the articles should be allowed, no matter how many times they were blocked. At the same time, trolling on talk pages should be rejected, so are the purposely-low-quality edits.
Compatibility with other extensions
- Extension:Moderation should be enabled last in LocalSettings.php, because it aborts at least PageContentSave hook.
- Extension:Moderation fully supports Extension:CheckUser, meaning that if CheckUser extension is enabled, then any approved edit will have correct IP, user-agent and XFF saved in the checkuser tables.
- Extension:Moderation is fully compatible with Extension:VisualEditor and Extension:MobileFrontend. Theoretically it should also work with other API-based editors.
- Extension:Flow will work, but edits in Flow forums will bypass moderation.
- Moderation of Flow forums should be implemented in Extension:Flow itself. These forums use a non-text "content model", which is not supported by Moderation.
- (a) Upload extensions like Extension:MultiUpload and (b) uploads via API are only supported in MediaWiki 1.28+.
- This can't be implemented for MediaWiki 1.27, because it doesn't have UploadVerifyUpload hook.
- Extension:ConfirmEdit - common CAPTCHA extension.
- Extension:AbuseFilter - common extension against spam bots and typical vandalism like blanking.
- Extension:Approved Revs - allows marking a revision as "approved", being the one displayed by default on a page.
- Extension:FlaggedRevs - more advanced (and heavy) version of Extension:Approved Revs.