Preventing new user creation

From Useful Data
Jump to navigation Jump to search

To prevent new user creation in your wiki - thereby stopping random strangers from mucking it up - do this:

  • edit LocalSettings.php in the root path of your MediaWiki installation and add the following to the end.
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;

Taken from here.