This page is a translated version of the page Extension:SpamRegex and the translation is 27% complete.
MediaWiki extensions manual
Release status: stabil
Implementation Special page
Beskrivelse Adds a special page to filter out unwanted expressions.
Latest version 1.7.0 (2020-03-10)
MediaWiki 1.39+
Database changes Ja
Licens GNU General Public License 2.0 or later
  • spamregex
Quarterly downloads 1 (Ranked 148th)
Public wikis using 1,117 (Ranked 252nd)
Translate the SpamRegex extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The 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.


  • Download and move the extracted SpamRegex folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamRegex
  • Add the following code at the bottom of your LocalSettings.php file:
    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 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).
  •   DoneNavigate to Special:Version on your wiki to verify that the extension is successfully installed.


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

Se også