Extension:DisableSpecialPages
![]() Release status: stable |
|
---|---|
Description | Allows wiki system administrators to make a special page unavailable |
Author(s) | Rob Church (Robchurchtalk) |
MediaWiki | 1.39+ |
License | GNU General Public License 2.0 or later |
Download | |
|
|
Translate the DisableSpecialPages extension if it is available at translatewiki.net | |
The DisableSpecialPages extension allows wiki administrators to make a special page unavailable. This can be used to disable certain special pages provided by MediaWiki core to e.g. ease server load temporarily or to prevent DDoS attacks, etc. without hacking MediaWiki core.
Installation
edit- Download and move the extracted
DisableSpecialPages
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/DisableSpecialPages - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'DisableSpecialPages' );
- Configure as required.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
edit$wgDisabledSpecialPages
- Titles of special pages to disable (default: empty setting)
- Example
$wgDisabledSpecialPages = [
'Recentchangeslinked'
];
The following special pages cannot be disabled:
See also
edit- Lockdown – Implements per-namespace group permissions including special pages