{{tag>mediawiki}} ====== Lock down Mediawiki ====== Add following directives to ''LocalSettings.php''. ===== Disable user account creation ===== $wgGroupPermissions['*']['createaccount'] = false; ===== Disable page creation editing ===== $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; ===== Block login of disabled user accounts ===== $wgBlockDisablesLogin=true; ====== See also ====== * [[wiki:mediawiki_inside_docker_container|MediaWiki inside Docker container]] * [[wiki:enable_various_filetype_uploads_to_mediawiki|Enable various filetype uploads to MediaWiki]] ====== References ====== * https://www.mediawiki.org/wiki/Manual:User_rights * https://www.mediawiki.org/wiki/Manual:Preventing_access#Simple_private_wiki