[Mediawiki-l] Antwort: restrict anonymous views in mediawiki

amuenzeb at rockwellcollins.com amuenzeb at rockwellcollins.com
Thu Jan 10 10:15:40 UTC 2008


mediawiki-l-bounces at lists.wikimedia.org schrieb am 10.01.2008 10:55:35:

> We wish to restrict anonymous views to our mediawiki installation. Every
> unauthorized user is to be redirected to a particular page. This page
> may not be a wiki page.
> 
> Can we do this using LocalSettings.php?

$wgGroupPermissions['*'    ]['read']            = false;
$wgGroupPermissions['user' ]['read']            = true;

prevents anonymous users from reading. You can exclude some pages using a 
whitelist:

$wgWhitelistRead = 
array('Spezial:RequestAccount','Special:RequestAccount','Hauptseite');

> If not, do we have any extension/hook for the very purpose?

HTH,
        Arnd


More information about the MediaWiki-l mailing list