Extension:PrivatePageProtection
From Linux Web Expert
<translate> If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package.</translate> <translate> 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.</translate> <translate> We are not responsible for anything being leaked.</translate>
<translate> For further details, see [[<tvar name=1>Special:MyLanguage/Security issues with authorization extensions</tvar>|Security issues with authorisation extensions]]</translate> |
PrivatePageProtection 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 |
Download | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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.
Usage
To restrict access to a page, add this text to the top of the article you want to restrict access to:
{{#allow-groups:sysop}}
would restrict access to the sysop group.
{{#allow-groups:autoconfirmed|emailconfirmed}}
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.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/PrivatePageProtection</tvar>|Download]] and move the extracted <tvar name=name>
PrivatePageProtection
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PrivatePageProtection - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'PrivatePageProtection' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
See also
- Extension:Lockdown for locking entire namespaces, special pages and actions.
Categories:
- Pages with script errors
- Pages with broken file links
- Page specific user rights extensions
- Beta status extensions
- Extensions without an image
- User rights extensions
- Parser extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- GPL licensed extensions
- Extensions in Wikimedia version control
- GetUserPermissionsErrorsExpensive extensions
- ParserFirstCallInit extensions
- MultiContentSave extensions
- All extensions
- View page extensions
- Edit extensions