How To Restrict Editing by Non-Logged-In Users in MediaWiki
If you administer a MediaWiki Wiki, you’ve probably come across wiki spam. There is a quite simple way of fixing this. Just edit the file LocalSettings.php in the root directory and add the following line at the bottom (or anywhere else):
$wgGroupPermissions['*']['edit'] = false;
This will remove the edit-permissions from users who have not yet logged in. If a guest tries to edit, they will be prompted to log in. Since you would no longer be able to edit using only your IP address as a signature, adding the following line might be desired too:
$wgShowIPinHeader = false;
Doing so removes the IP address from the header for non-logged-in users (logged-in users wouldn’t see it anyway). Happy wikiing.

Works great. Thanks for the help.
Comment by Captain Utah — December 1, 2007 @ 4:59 am
Can you check this again ? When I apply this change I can’t stay logged in at all …. every page says “you must login”
Comment by Chris — March 27, 2008 @ 8:37 pm