|This extension is obsolete!
It has been replaced by Phalanx.
Release status: stable
|Description||Adds a special page to filter out unwanted expressions.|
|Last version||1.2 (3rd of October, 2008)|
|License||GNU General Public License 2.0 or later|
|Check usage and version matrix; stats|
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 move summaries, depending on what was chosen by the user who blocked links or text.
- Copy the
SpamRegexfolder and its contents into
- Create the
spam_regextable with the SQL query below or run SpamRegex.sql against your wiki's database from command line.
- Include the
- This extension uses Memcached - please check if Memcached is configured properly in Global/LocalSettings.php.
If administrators or bureaucrats cannot access the extension, check if relogin helps. If not, please check if the administrators and bureaucrats permissions are not overwritten after the initialization of the extension. If which case, the permissions should be appended (the extension adds one new permission right).
SQL query to create the table
CREATE TABLE `spam_regex` ( `spam_id` INT(5) NOT NULL AUTO_INCREMENT, `spam_text` VARCHAR(255) NOT NULL, `spam_timestamp` CHAR(14) NOT NULL, `spam_user` VARCHAR(255) NOT NULL, `spam_textbox` INT(1) NOT NULL DEFAULT 1, `spam_summary` INT(1) NOT NULL DEFAULT 0, PRIMARY KEY (`spam_id`), UNIQUE KEY `spam_text` (`spam_text`), KEY `spam_timestamp` (`spam_timestamp`), KEY `spam_user` (`spam_user`) );
- Go to Special:SpamRegex
- Enter the phrase to be blocked into the "Phrase to block" box
- Select one or both of the available options: block phrase in page text & block phrase in summary (edit summaries)
- Press the "Block this phrase" button