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 |
![]() |
This extension is currently not actively maintained! Meaning any reports for additional features and/or bugfixes will more than likely be ignored. Volunteers are encouraged to take on the task of developing and maintaining it. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
PrivatePageProtection Release status: unmaintained |
|||
---|---|---|---|
Implementation | User rights, Parser extension | ||
Description | Implements per-page access permissions based on user groups | ||
Author(s) | Daniel Kinzler (Duesentriebtalk) | ||
Latest version | continuous updates | ||
MediaWiki | 1.18+ | ||
Database changes | No | ||
License | GNU General Public License 2.0 or later | ||
Download |
CHANGELOG |
||
|
|||
Translate the PrivatePageProtection extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
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[edit | edit source]
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 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.
Installation[edit | edit source]
- Download the files from SVN or copy them manually from SVN
- 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
See also[edit | edit source]
- Extension:Lockdown for locking entire namespaces, special pages and actions.
Categories:
- Page specific user rights extensions
- Unmaintained extensions
- Extensions in need of a new maintainer
- GPL licensed extensions
- Not LTS ready
- User rights extensions
- Parser extensions
- Extensions in Wikimedia version control
- GetUserPermissionsErrorsExpensive extensions
- ParserFirstCallInit extensions
- ArticleSave extensions
- All extensions
- View page extensions
- Edit extensions