Email validate
The main goal of this module is to prevent the use of disposable emails (DEA) when registering and updating a user profile.
We have collected a number of actual and effective methods of checking DEA and implemented them in one module.
Features
Module implements the list of next constraints:
Google Disposable Email
Prevents the use of emails such as:
- [email protected]
- [email protected]
- [email protected] (dots in any place)
if user with email address [email protected] already exists.
Yandex temporary emails
Prevents the use of emails such as
- [email protected] if [email protected] already exists
- [email protected] if [email protected] already exists
- user@(ya.ru|yandex.ru|yandex.by|...) if user with [email protected] email already exists and so it is for every domain.
E-mail domain black list
Provide internal black list which contains the list of email domains to block.
Temporary email checking on https://block-temporary-email.com
Implement checking of emails on https://block-temporary-email.com.
Required to create account and get API key.
All these checks can either be enabled or disabled as needed.
Post-Installation
Install the module and enable it as usual, then open configuration page at
Configuration | People | User Email validation (/admin/config/people/email_validate)
Select and save which constraints should be enabled.
-------------------------------------------------------------------------------------
New features in 1.0.5
Checking site users feature
Provides a bulk users email checking.
Added checking by email domain
Check the DNS record of the e-mail domain name.
-------------------------------------------------------------------------------------
Similar projects
We analyzed similar modules and create a new with wider functinality
and based on modern Drupal constraints API.
- https://www.drupal.org/project/check_dns
- https://www.drupal.org/project/dea_blocker
- https://www.drupal.org/project/stop_spam_regs
- https://www.drupal.org/project/duplemail
- https://www.drupal.org/project/unwanted_email_registration
For Developers:
<?php
// Example of current user email validation.
$account = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id());
$violations = $account->get('mail')->validate();
?>
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.