Mediawiki disable Talk pages from public viewing
I recently started using Mediawiki and I am currently on version 1.17.
I would like to disable Talk namespace pages from viewing from public. I already disabled UserCreation as开发者_C百科 I would like only me to edit the pages. So, I am basically using it as a CMS.
My question is, how can I disable view access for Talk pages for public.
PS: I already disabled the tab bar, so the Discussion link doesn't appear, but if some one manually types Talk:PageName, it opens up. This is what I want to disable.
This will only hide the talk pages. People can still use them by going to the URL directly.
In addition add this to your LocalSettings.php to prevent people from editing talk pages:
for($i = 1;$i < 12; $i += 2) {
$wgNamespaceProtection[$i] = 'noedit';
}
MediaWiki is not designed for this kind of usage since Talk pages are inherent to the system. One possible way for you would be to hide the talk page links by editing your skin.
The following CSS will hide the top talk links:
li#ca-talk {
display: none;
}
In LocalSettings.php set:
$wgDisableAnonTalk = false;
According to the Manual:$wgDisableAnonTalk this 'disables links to talk pages of anonymous users (IPs) in listings on special pages'.
Hide the talk pages like in the other answers and additionally disable access to the talk pages by blacklisting URLs matching that pattern in your web server or WAF.
精彩评论