Topic on Project:Support desk

is password protected wiki possible?

3
Majornola (talkcontribs)

i'm creating a wiki for training purposes and want to embed the link for it in the main site of our company. but i don't want strangers who click that link to see where it goes until they have entered the password. so maybe i would like there to be a static front page that prompts the visitor to enter his credentials before being let into the actual wiki.

any thoughts are greatly appreciated.

thanks in advance.

88.130.101.180 (talkcontribs)

There basically are two ways:

Number one: Set up .htaccess password protection. That way, if you try accessing the directory, in which the wiki is stored, you will have to enter username and password. If you do not have valid credentials, you will only see an Apache error page - no output will be produced by the wiki. So from the server output, there is no way to tell, what is behind that protection. You will easily find tons of tutorials on the net on how to set up .htaccess and .htpasswd to protect a directory.

Number two: Configure the wiki to only allow anonymous users to see the wiki login page, but no other wiki pages. It will be clear that a MediaWiki installation is running there, but the content will be hidden just as in number one. A guide for this can be found here: Manual:Preventing_access#Restrict_viewing_of_all_pages.

Subfader (talkcontribs)

Set the user right for reading to logged in users, disable registering (only you as admin register accounts for the team).

$wgGroupPermissions['*']['createaccount'] = false; // enable temporarily when you register an account
$wgGroupPermissions['*']['read']          = false;
$wgGroupPermissions['user']['read']       = true;

Manual:User_rights

Reply to "is password protected wiki possible?"