How to secure your MediaWiKi web site: page access control.
How to set up page security for your MediaWiki web site.
Many people love WiKi web sites, especially Wikipedia which allows everybody to register a username, and lets him/her to post an article and edit articles written by other people. However if you want to set up a partially “open-door” web site, you may want to implement user-access control.
Basic User Right Control: Add the following lines to LocalSettings.php:
#do not allow anonymous users create an account
$wgGroupPermissions['*']['createaccount'] = false;#users do not need to log in to read
$wgGroupPermissions['*']['read'] = true;# require that users log in to edit
$wgGroupPermissions['*']['edit'] = false;# allow these pages for anonymous users
$wgWhitelistRead = array( “Main Page”, “Special:Userlogin”, “-”, “MediaWiki:Monobook.css” );# remove the link to the talk page for non-logged in users
$wgShowIPinHeader = false;# require that users log in to read
$wgGroupPermissions['*']['read'] = false;
If you want to set up different privileges for customers and content developers, you need to download and install PageSecurity extension from http://www.mediawiki.org/wiki/Extension:PageSecurity.
Popularity: 5%


(2 votes, average: 3.5 out of 5)
















































