This module prevents the use of disposable or temporary email addresses during user registration and profile updates. It offers various checks, including detecting variations of Gmail and Yandex emails, blocking domains from a blacklist, and integrating with external services. Administrators can enable or disable specific checks as needed.
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();
?>
Ask your assistant about Email validate
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.5 | Stable | 8–11 | Mar 20, 2024 | ||
| 1.0.4 | Stable | 8–11 | Mar 20, 2024 | ||
| 1.0.3 | Stable | 8–10 | Oct 16, 2023 | ||
| 1.0.2 | Stable | 8–10 | Oct 14, 2023 | ||
| 1.0.1 | Stable | 8–10 | Oct 14, 2023 | ||
| 1.0.0-beta1 | Pre-release | 8–10 | Oct 12, 2023 | ||
| 1.0.0 | Stable | 8–10 | Oct 12, 2023 | ||
| 1.0.x-dev | Dev | 8–11 | Oct 12, 2023 |