Locking down a MediaWiki
I know, it’s a crime against wiki nature, but sometimes you want to lock down a MediaWiki install so only certain people can edit it. To do so, put this in LocalSettings.php:
$wgGroupPermissions['*']['edit'] = false; $wgShowIPinHeader = false;
$wgGroupPermissions['*']['createaccount'] = false;
Then, to create someone an account, you have to log in, then return to the login page and click ‘Create account’. The flow is a bit weird; the best I can recommend is to bookmark the ‘Create account’ page, which will be something like this for a wiki on http://example.com/:
http://example.com/Special:UserLogin?type=signup