Open main menu

Extension:PrivateDomains

MediaWiki extensions manual
OOjs UI icon advanced.svg
PrivateDomains
Release status: stable
Implementation Special page
Description Allows to restrict editing to users with a certain e-mail address.
Author(s) Inez Korczyński
Jack Phoenix
Latest version 1.5.0
MediaWiki 1.33+
License GNU General Public License 2.0 or later
Download
privatedomains
Translate the PrivateDomains extension if it is available at translatewiki.net
Check usage and version matrix.

The PrivateDomains extension restricts wiki editing to users with a certain e-mail address. It adds a new special page, Special:PrivateDomains, to allow changing the name of the organization and to add "trusted" e-mail addresses. Bureaucrats and staff members can access this special page by default.

If a non-privileged user (someone who does not have the organization's email address) tries to edit, s/he sees a warning box about the fact that s/he cannot change pages on the wiki. Be aware that the user can't view pages' wikitext source either.

InstallationEdit

  • Download and place the file(s) in a directory called PrivateDomains in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PrivateDomains' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

ConfigurationEdit

While PrivateDomains settings are meant to be edited via Special:PrivateDomains, they are stored in the MediaWiki: namespace and thus they can also be directly edited.

  • MediaWiki:Privatedomains-domains — contains the list of allowed e-mail domains
  • MediaWiki:Privatedomains-affiliatename — contains the name of the organization, i.e. FooCorp, Inc. or Bar State University
  • MediaWiki:Privatedomains-emailadmin — contains the name of a wiki user whom users can contact if they're having issues