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.
Comments Archive
Hi there. This is my old blog and it's archived, so you can no longer post new comments on this post (WikiMedia Spam – Lock Media Wiki Permissions down).
Read my new blog about writing software and stories at WoodyHayday.com