The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

721 Modules
460 Ready
239 Need Help
🏆 Leaderboard
Actively Maintained v1.0.0

Disposable Email Validator

max-stan/magento2-disposable-email-validator

Blocks customer registration with disposable and temporary email addresses by validating against a database of 90,000+ known throwaway domains. Supports custom blocklists and whitelists for fine-grained control.

0
Downloads
0
GitHub Stars
2mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
1 error , 16 warnings
L5 PHPStan

Tested on Magento 2.4.8-p4

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.0.0 on Magento 2.4.8-p4
Mar 21, 2026

Share This Module's Status

Disposable Email Validator Magento compatibility status badge

README

Loaded from GitHub

Magento 2 Disposable Email Validator

Adds ability to block against 90,000+ known disposable/temporary email domains during customer registration.

Packagist Packagist Packagist

Description

Disposable email addresses (like tempmail.com, guerrillamail.com, etc.) are commonly used for spam registrations, fake accounts, and abuse. This module validates emails against 90,000+ known disposable email domains and blocks them during customer registration.

Recommended usage: By default, Magento does not require email confirmation during customer registration. Without email confirmation enabled, blocking disposable emails has limited effect — users can still register with any fake but valid-looking email address. I recommend enabling this module alongside Magento's email confirmation feature (Stores → Configuration → Customers → Customer Configuration → Create New Account Options → Require Emails Confirmation).

Features

  • Validates against 90,000+ disposable email domains (auto-updated via composer)
  • Custom blocklist — add your own domains to block
  • Whitelist support — allow specific domains to bypass validation

Installation

To install module in your Magento 2 project, follow these steps:

composer require max-stan/magento2-disposable-email-validator
bin/magento mod:en MaxStan_DisposableEmailValidator
bin/magento setup:upgrade
bin/magento setup:di:compile

Magento Compatibility

  • Magento 2.4.x
  • PHP 8.2+

Contributing

Contributions are welcome! If you find a bug or have a feature request, feel free to open an issue or submit a pull request.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.