Extension:SpamRegex

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
SpamRegex

Release status:Extension status stable

Special.spamregex.png
ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Adds a special page to filter out unwanted expressions.
Author(s)Template:Extension#username Bartek Łapiński
Alexandre Emsenhuber
Jack Phoenix
Latest versionTemplate:Extension#version 1.4 (3 December 2016)
MediaWikiTemplate:Extension#mediawiki 1.28+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
Added rightsTemplate:Extension#rights

spamregex

Hooks usedTemplate:Extension#hook
EditFilterManual:Hooks/EditFilter
MovePageCheckPermissionsManual:Hooks/MovePageCheckPermissions
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates

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

Check usage and version matrix.

SpamRegex extension creates a new page, Special:SpamRegex, to filter out unwanted links or text. A full list of currently blocked links or text can be viewed on this same special page. The spamregexed expressions cannot be used in page content, edit summaries or page move summaries, depending on what was chosen by the user who blocked links or text.

Installation[edit]

  • Download and place the file(s) in a directory called SpamRegex in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'SpamRegex' );
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • This extension uses Memcached - please check if Memcached is configured properly in Global/LocalSettings.php.
  • Ensure the the spamregex user right is given to a group that exists; by default this user right is given to the staff user group (which does not exist in a default MediaWiki installation).
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Usage[edit]

  1. Go to Special:SpamRegex
  2. Enter the phrase to be blocked into the "Phrase to block" box
  3. Supply a reason for blocking the phrase
  4. Select one or both of the available options: block phrase in page text & block phrase in summary (edit summaries, page move summaries)
  5. Press the "Block this phrase" button

See also[edit]