Extension:PrivatePageProtection
From MediaWiki.org
![]() |
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, leading to loss of funds or one's job. For further details, see Security issues with authorization extensions |
PrivatePageProtection Release status: beta |
|||
---|---|---|---|
Implementation | User rights, Parser extension | ||
Description | Implements per-page access permissions based on user groups | ||
Author(s) | Daniel Kinzler (DuesentriebTalk) | ||
Last version | continuous updates | ||
MediaWiki | 1.18+ | ||
Database changes | no | ||
License | GPL 2.0 or later | ||
Download |
Download snapshot[?] (SVN)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes CHANGELOG |
||
|
|||
Check usage (experimental) |
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.
[edit] Usage
To restrict access to a page, use the allow-groups function:
{{#allow-groups:sysop}}
would restrict access to the sysop group.
{{#allow-groups:autoconfirmed|emailconfirmed}}
restricts access to members of the autoconfirmed and emailconfirmed groups.
Note: Note that 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.
[edit] Installation
- Download the files from SVN or download a snapshot (select your version of MediaWiki)
- Create a directory
PrivatePageProtection
in your$IP/extensions
directory. - Add the files to that
$IP/extensions/PrivatePageProtection
directory. - Add to the end of LocalSettings.php:
require_once("$IP/extensions/PrivatePageProtection/PrivatePageProtection.php");
- Installation can now be verified through Special:Version on your wiki
[edit] See also
- Extension:Lockdown for locking entire namespaces, special pages and actions.
Language: | English |
---|
Categories:
- Page specific user rights extensions
- Beta status extensions
- User rights extensions
- Parser extensions
- Extensions in Wikimedia version control
- GetUserPermissionsErrorsExpensive extensions
- ParserFirstCallInit extensions
- ArticleSave extensions
- All extensions
- 2012 Q1 Extension Page Review Drive - completed
- View page extensions
- Edit extensions