Extension:ProtectSite

Category:Pages to be expanded#ProtectSite Category:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
ProtectSite
Release status: stableCategory:Stable extensions
Implementation Special page Category:Special page extensions
Description Allows a site administrator to temporarily block various site modifications
Author(s) Eric Johnston
Chris Stafford
Jack Phoenix
Latest version 0.5.0 (2016-12-05)
MediaWiki 1.43+Category:Extensions with manual MediaWiki version
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgProtectSiteLimit
  • $wgProtectSiteDefaultTimeout
  • $wgProtectSiteExempt
Quarterly downloads 7 (Ranked 77th)
Translate the ProtectSite extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

ProtectSite extension adds a new special page, Special:ProtectSite, where users with the protectsite user right can block various site modifications.

The extension will show up in the protection log (Special:Log/protect) as a protection of Special:AllPages.

When the extension is enabled, it will override the default settings that may already be defined for the timeout period specified.

Installation

  • Download and move the extracted ProtectSite 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/ProtectSite
    
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'ProtectSite' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

User rights

By default the bureaucrat group has the protectsite right, which is required to access the special page.

Parameters

  • $wgProtectSiteLimit maximum time allowed for protection of the site
  • $wgProtectSiteDefaultTimeout — default timeout, 1 hour by default
  • $wgProtectSiteExempt array of non-sysop user groups to be not affected by rights changes
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions included in Fandom Category:Extensions included in Miraheze Category:Extensions included in WikiForge Category:Extensions which add rights Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:GPL licensed extensions Category:Pages to be expanded Category:Special page extensions Category:Stable extensions