Skip to content

spam

Restrict Edit-Access to MediaWiki

I setup a personal wiki some time ago but it quickly was overrun by spam. Just about the point that I considered abandoning it altogether I figured out how to restrict edit access. This post, more than anything, is a note to myself… but as always it’ll end up on the Google machine and hopefully help someone else. The following changes should be added (anywhere) to your LocalSettings.php. Restrict anonymous editing: $wgGroupPermissions['*']['edit'] = false; Restrict editing by all non-sysop users: $wgGroupPermissions['*']['edit'] = false;<br /> $wgGroupPermissions['user']['edit'] = false;<br /> $wgGroupPermissions['sysop']['edit'] = true; Restrict editing by absolutely everyone: $wgGroupPermissions['*']['edit'] = false;<br /> $wgGroupPermissions['user']['edit'] = false;<br /> $wgGroupPermissions['sysop']['edit'] = false; Here’s to less spam on the interweb!