Mediawiki, blocking unauthorised reading...

Ananth's picture

We want to allow just 5 people to access our internal website and block all unauthorised viewing and account creations.

We tried editing the Localsettings.php file

# Anonymous users can't create pages

$wgGroupPermissions['*']['createpage'] = false;

# Only users with accounts four days old or older can create pages # Requires MW 1.6 or higher. $wgGroupPermissions['*' ]['createpage'] = false;

$wgGroupPermissions['user' ]['createpage'] = false;

$wgGroupPermissions['autoconfirmed']['createpage'] = true;

But the website crashed, as main page could not be accessed after that.

Please advice, how can we achieve unauthorosed reads?

regards

Anth :-)

 

 

 

Jeremy Davis's picture

AFAIK you need to restart the Webserver service for the settings to be applied (although I could be wrong?).

/etc/init.d/apache2 restart

Should work on both the old v2009.x or the new v11.x (I don't think apache has an upstart script?)

Ananth's picture

Thank You!! It worked!! Thanks a TON!

Site is supposed to be for 1 department use only. So we didn't want others to see their confidential contents!!

smiley


Post new comment