Jump to content

Extension:ProtectEntireWiki

From mediawiki.org
MediaWiki extensions manual
ProtectEntireWiki
Release status: stable
Description ProtectEntireWiki is a extension that can protect the entire wiki or the entire namespace.
Author(s) LBLaiSiNanHaitalk
Latest version 1.1.lb1/1.0

(last update: 2025-12-28

, update)
MediaWiki >=1.35 , <1.45
  • $wgPEWNotifyUser
  • $wgPEWProtectionConfigFileLoc
  • $wgPEWAllowEditImpliesAllowRollback
Licence BSD 3-clause "Modified" License
Download
README

ProtectEntireWiki is a extension that can protect the entire wiki or the entire namespace.

Installation

Download this extension, put it to extensions directory, and add a line wfLoadExtension("ProtectEntireWiki"); to LocalSettings.php .

Configuration

LocalSettings.php variables

Name Type Description Default
$wgPEWNotifyUser MediaWiki username The user must already exist.

This variable configs the user that to notify rollback failed

ProtectEntireWiki
$wgPEWProtectionConfigFileLoc Path on server The file must already exist

This variable configs the location that stores the protection configuration

{EXT_DIR}/pconf.txt
$wgPEWAllowEditImpliesAllowRollback Boolean This variable configs allow edit implies allow rollback or not true

Protection configuration

You can edit the file that located at value of $wgPEWProtectionConfigFileLoc to configuration protection rules currently, see also the README for syntax.

See also