If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package. MediaWiki was not written to provide per-page access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We are not responsible for anything being leaked.
For further details, see Security issues with authorisation extensions
Release status: beta
|User rights, Parser extension
|Implements per-page access permissions based on user groups
|Daniel Kinzler (Duesentriebtalk)
|GNU General Public License 2.0 or later
|6 (Ranked 143rd)
|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.
- Download and move the extracted
PrivatePageProtectionfolder to your
Developers and code contributors should install the extension from Git instead, using:
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PrivatePageProtection
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'PrivatePageProtection' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
See also edit
- Extension:Lockdown for locking entire namespaces, special pages and actions.