Other languages:
MediaWiki extensions manual
OOjs UI icon advanced-invert.svg
Release status: stable
ProtectSite MediaWiki extension.png
Implementation Special page
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.35+
Database changes No
License GNU General Public License 2.0 or later

  • $wgProtectSiteLimit
  • $wgProtectSiteDefaultTimeout
  • $wgProtectSiteExempt
Translate the ProtectSite extension if it is available at translatewiki.net

Check usage and version matrix.

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

When the ProtectSite extension is used, it will show up in the protection log (Special:Log/protect) as a protection of Special:AllPages.

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


  • Download and place the file(s) in a directory called ProtectSite in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ProtectSite' );
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

User rightsEdit

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


  • $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