One the latest projects we’ve been working on involves the use of the fantastic open source wiki named MediaWiki, more commonly known by the end user as the WikiPedia, well the developers that make WikiPedia kindly release the code separately for people to use.
Anyway I was looking for a way to restrict anonymous editing, and it seem when I was searching for the following terms I could find what I was looking for:
Restrict MediaWiki editing
Restrict MediaWiki anonymous editing
Restrict WikiPedia Editing
Restrict editing of wiki to registered members only
Restrict Media Wiki To registered users only
And the list goes on.
Anyway for those seeking the same solution, it’s actually very easy to implement.
Open up your localsettings.php and the following lines of code where you wish.
# Restrict editing of wiki to registered users
$wgGroupPermissions['*']['edit'] = false;
That’s just telling the wiki that edits from anonymous * users is not allowed.
Hopefully this will save someone some time.