How to restrict read permission of a namespace in mediawiki

1.2k Views Asked by At

Is there any way to restrict everyone's read permission of a particular namespace in mediawiki ?

1

There are 1 best solutions below

0
On BEST ANSWER

Restricting read permissions granularly is tricky in MediaWiki, but possible. If you have only one namespace and one group ("everyone") to restrict, the Lockdown extension will do. Download the extension, then in your configuration:

require_once "$IP/extensions/Lockdown/Lockdown.php";
$wgNamespacePermissionLockdown[NS_PROJECT]['read'] = array('user');
$wgNonincludableNamespaces[] = NS_PROJECT;

(for the "Project:" namespace).