Skip to content

MediaWiki extension to validate the existence of the domain part of an email address

License

Notifications You must be signed in to change notification settings

quanterium/EmailDNSValidate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

email-dns-validate

MediaWiki extension to validate the existence of the domain part of an email address.

Installation

  1. Clone the extension from GitHub to your wiki's extensions folder: git clone https://github.com/quanterium/EmailDNSValidate.git
  2. Enable the extension by adding it to your LocalSettings.php file: wfLoadExtension('EmailDNSValidate');

Configuration

If you wish to prohibit certain domains from being able to register, set the variable $wgEmailDNSValidateDomainBlacklist to be an array containing the domains you wish to prohibit after including the extension in your LocalSettings.php file. For example:

wfLoadExtension('EmailDNSValidate');
$wgEmailDNSValidateDomainBlacklist = array('example.com', 'example.net');

If it is not defined, no domains will be blacklisted.

What it Does

MediaWiki by default validates only the format of an email address. This extension extends that validation to also verify the existence of the domain component. The domain name must be registered in DNS; an MX record is not required since a site does not require one if the IP address associated with the domain runs the SMTP server.

IP addresses in place of the domain are allowed; this extension will check for and block IP addresses in private or reserved address blocks.

This extension can also check against a blacklist of prohibited domains.

Bugs Reports and Feature Requests

Bugs Reports and Feature Requests can be made by creating an Issue on GitHub. Pull requests for changes are also welcome.

About

MediaWiki extension to validate the existence of the domain part of an email address

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages