<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>thesaucymare &#187; MediaWiki</title>
	<atom:link href="http://thesaucymare.co.za/category/developer/mediawiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesaucymare.co.za</link>
	<description></description>
	<lastBuildDate>Tue, 02 Aug 2011 09:22:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Securing your Wiki</title>
		<link>http://thesaucymare.co.za/securing-your-wiki/</link>
		<comments>http://thesaucymare.co.za/securing-your-wiki/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 15:10:41 +0000</pubDate>
		<dc:creator>Booth Warwick</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[MediaWiki]]></category>
		<category><![CDATA[permissons]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.thesaucymare.co.za/?p=29</guid>
		<description><![CDATA[To change the access levels]]></description>
			<content:encoded><![CDATA[<p>To change the access levels of existing groups or add new groups, you need to have shell/ftp access to the machine that MediaWiki is running on. You can add or remove permissions to a group with the following sample statements in <a class="new" title="LocalSettings.php" href="../mwiki/index.php?title=LocalSettings.php&amp;action=edit">LocalSettings.php</a>.</p>
<p><span id="more-29"></span></p>
<p>To disable account creation by anonymous visitors (this replaces $wgWhitelistAccount from 1.4)</p>
<pre> $wgGroupPermissions['*']['createaccount'] = false;
</pre>
<p>To require that users log in to edit (this replaces the $wgWhitelistEdit from 1.4):</p>
<pre> $wgGroupPermissions['*']['edit'] = false;
</pre>
<p>It&#8217;s worth noting that if you set this, you may also want to set</p>
<pre>$wgShowIPinHeader = false; # For non-logged in users
</pre>
<p>This removes the link to the talk page in the header for non-logged in users, and hasn&#8217;t changed from 1.4.</p>
<p>If $wgWhitelistRead is set, you must also disable the &#8216;read&#8217; permission for it to take effect on anonymous users. Any CSS and JS pages used in the Main Page or Login Page should be accessible as well to avoid IE scripting error dialog box.</p>
<pre> $wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );
 $wgGroupPermissions['*']['read'] = false;
</pre>
<p><em>Main Page</em> is not mandatory for this list.  To avoid &#8220;login required&#8221; redirect page, you can change includes/OutputPage.php loginToUse():</p>
<pre>function loginToUse() {
    $titleObj = Title::makeTitle( NS_SPECIAL, "Userlogin" );
    $this-&gt;redirect( $titleObj-&gt;getFullURL() );
}
</pre>
<p>You can define new groups as well, and then assign them to users through Special:Userrights:</p>
<pre> $wgGroupPermissions['ninja']['delete'] = true;
 $wgGroupPermissions['ninja']['block'] = true;
 $wgGroupPermissions['ninja']['bot'] = true;
</pre>
<p>This is to block all of the pages except the login and stuff to any one that has an anonymous user</p>
<pre> # Disable reading line, for anonymous (not-logged-in =&gt; * ) :
 $wgGroupPermissions['*']['read'] = false;
</pre>
<pre> # ... and enable anonymous to read the followings pages :
 $wgWhitelistRead = array( "Main Page", "Special:Userlogin", "-", "MediaWiki:Monobook.css" );
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thesaucymare.co.za/securing-your-wiki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

