MediaWiki:LocalSettings.php

$wgGroupPermissions['*']['edit'] = false;