Extension:NoAnonymous

What can this extension do?

 * 1) Prevent acces from non_logged user;
 * 2) Automaticaly redirect non-logged user to Special:Userlogin;
 * 3) After successfull login, redirect user to main page

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php:
 * Important!
 * You must include this extension before other extensions in localSettings.