max-stan / magento2-disposable-email-validator
Adds ability to block against 90,000+ known disposable/temporary email domains during customer registration and newsletter subscription.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
pkg:composer/max-stan/magento2-disposable-email-validator
Requires
- php: >=8.2
- beeyev/disposable-email-filter-php: ^1.3
- magento/framework: *
This package is auto-updated.
Last update: 2026-01-31 13:03:05 UTC
README
Adds ability to block against 90,000+ known disposable/temporary email domains during customer registration.
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.