Jump to content


From mediawiki.org
MediaWiki extensions manual
Release status: beta
Implementation User rights , Parser extension
Description Implements per-page access permissions based on user groups
Author(s) Daniel Kinzler (Duesentriebtalk)
Latest version 1.2 (2023-10-14)
MediaWiki 1.39+
Database changes No
License GNU General Public License 2.0 or later
Quarterly downloads 5 (Ranked 127th)
Translate the PrivatePageProtection extension if it is available at translatewiki.net

The PrivatePageProtection extension implements a way to restrict access to specific pages using a parser function. Using that parser function, the user groups that should have access to the page can be listed directly in the page.


To restrict access to a page, add this text to the top of the article you want to restrict access to:


would restrict access to the sysop group.


restricts access to members of the autoconfirmed and emailconfirmed groups.

User can not save a page which restricts access to groups the user does not belong to. That is, users can not lock themselves out of pages.


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

See also[edit]