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.
Share ThisThank you so much for posting this, and leaving the well-marked searchable words. Just the info I needed! wgGroupPermissions like I could guess that, not. ![]()
Not a problem, just glad I could be of some help.
I love MediaWiki, it’s gotta be one of if not the best in wiki-ware, but it’s so darn complicated to make simple changes sometimes. The lack of an admin section is a drawback in my opinion.
If you ever consider another wiki, then look into TikiWiki that’s pretty smart also. The cool thing about TikiWiki is how it also functions as a content management system.
‘TikiWiki (Tiki) is your Groupware/CMS (Content Management System) solution.’
Comments RSS TrackBack Identifier URI
Leave a comment
You must be logged in to post a comment.











2 Comments