Moved to: WoodyHayday.com
Woody Hayday

Fresh Ideas

Hi there! This is my old blog, I don't hang around here much.
You can now find me trying to mix things up here:
Visit WoodyHayday.com Subscribe To My Email List

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. Both comments and trackbacks are currently closed.
Woody Hayday

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

The New Blog
WoodyHayday.com
A Quote..
"I'm only good at being young"
John Mayer
Old Random Projects
    © Woody Hayday 2008-2024