Home
/
Other Applications
/
How to disable registration for MediaWiki?

How to disable registration for MediaWiki?

To disable the option for your MediaWiki visitors to register accounts at your MediaWiki website, add the following line in the LocalSettings.php file:

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

You can find below detailed instructions on how to do this on your web hosting account using Site Tools:

1. Go to your Site Tools > Site;

2. Click on File Manager;

3. Click on public_html folder name;

4. Click on the LocalSettings.php file;

5. On top, you will see several management options for LocalSettings.php file. Click on Edit;

6. Look for a line that starts with $wgGroupPermissions. If there is no such line, add it yourself and if there already is such a line you should edit it to look this way:

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

7. Save the edited LocalSettings.php file and the new users account creation will be disabled.

If you have problems disabling the MediaWiki registration yourself, ask your host for assistance.

Share This Article