Extension:DisableSpecialPages
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Description | Allows wiki system administrators to make a special page unavailable |
Author(s) | Rob Church (Robchurchtalk) |
Latest version | 2.0 |
MediaWiki | 1.39+Category:Extensions with manual MediaWiki version |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control |
|
|
Quarterly downloads | 2 (Ranked 99th) |
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
- 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
$wgDisabledSpecialPages
- Titles of special pages to disable (default: empty setting)
- Example
$wgDisabledSpecialPages = [
'Recentchangeslinked'
];
The following special pages cannot be disabled:
See also
- Lockdown – Implements per-namespace group permissions including special pages
Category:All extensions
Category:Extensions in Wikimedia version control
Category:Extensions with invalid or missing type
Category:Extensions with manual MediaWiki version
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:GPL licensed extensions
Category:SpecialPage initList extensions
Category:Stable extensions
Category:User rights extensions