Media Wiki Security Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 18: Line 18:


=Editing=
=Editing=
Disable anonymous editing:
$wgGroupPermissions['*']['edit'] = false;


=Account Creation=
=Account Creation=

Revision as of 18:18, 20 February 2018

Internal

Overview

sysop

Reading

Disable reading by anonymous users:

$wgGroupPermissions['*']['read'] = false;

To allow anonymous users access to the login page:

$wgWhitelistRead = array ("Special:Userlogin");

Editing

Disable anonymous editing:

$wgGroupPermissions['*']['edit'] = false;

Account Creation

Controlled by LocalSettings.php:

$wgGroupPermissions['*']['createaccount'] = false;

This prevents account creation by anyone (logged in or not), except by sysops.