web statistics

Mediawiki user permissions

Posted on August 12, 2008 by nseidm1.
Categories: Mediawiki, permissions, user.

If your Mediaiwki installation is not going to be completely editable by the public you will need to change various permissions options in the LocalSettings.php configuration file. For instance if you want to prevent account creation use:

// Only SysOp (Admin) can create accounts -
$wgGroupPermissions['*']['createaccount'] = false;

If you want to prevent people from creating new pages use:

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

If you want to allow people to create talk pages use:

$wgGroupPermissions['*'    ]['createtalk']      = true;

Or if you want to completely prevent users from editing, without logging is as a registered user, use:

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

1 comment.

Comment on April 24th, 2009.

Aha! you very cleaver nettizen. Thank you for the post. Short sweet and the bot spam is now curbed behind a media wiki login.

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

tested and worked like a charm

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>