Find it

WikiMedia Spam – Lock Media Wiki Permissions down

Using Media Wiki (wikiMedia) somewhere online to manage content? chance’s are you’ve had unwelcome guests spamming you to high heavens. By default permissions on wiki media are, well wiki-level, they provide access to everyone – that’s the point of wiki right? But if you want a private wiki (Media Wiki suggests itself that its not the right solution for this) or a wikipedia which only some user’s can participate in then you have to add a few lines to your LocalSettings.php.

It’s better to do this on setup rather than wait for the spam bots, and without doubt there is different ways of doing this – but the following locked down media wiki in this instance just how I wanted it too.

$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['sysop']['createpage'] = true;

This does what it says on the tin, and leaves you free to carry on filling your own mini wikipedia up how you want. You can find full explanations/wikimedia security settings here.

This entry was posted in Web Development, Wiki Media. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

Got a Project?
A Quote..
"Imagine a building like a tree, a city like a forest"
Michael Braungart & William McDonough - Cradle2Cradle
© Woody Hayday 2012