|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
Release status: beta
|Implementation||Tag, User rights|
|Description||Allows only sysops and certain user groups to edit pages containing the
|Author(s)||Antoine Mercier-Linteau (Tinsstalk)|
|Latest version||0.2b (2019-01-31)|
|License||GNU General Public License 2.0 or later|
|Translate the SaferHTMLTag extension if it is available at translatewiki.net|
|Check usage and version matrix.|
The SaferHTMLTag extension prevents users that are not in a group which has the edit-html allowed from editing pages which contain the
<html> tag enabled through
$wgRawHtml = true.
- Download, extract and place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'SaferHTMLTag' );
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
To users running MediaWiki 1.24 or earlier:
The instructions above describe the new way of installing this extension using
wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of
wfLoadExtension( 'SaferHTMLTag' );, you need to use:
Enabling for a groupEdit
To enable for a group (eg: sysops), add the following to you LocalSettings.php file:
$wgGroupPermissions['sysop']['edit-html'] = true; // Enable in-wiki HTML editing for sysops.