Laravel Disposable Email Detection is a Laravel package for detecting and blocking disposable email addresses during validation and runtime checks. It helps protect registrations, lead forms, and application workflows from temporary inbox abuse.
Already contains 1,24,220+ disposable email domains!
composer require erag/laravel-disposable-emailPublish the configuration:
php artisan erag:install-disposable-email- 🔥 110,880+ known disposable domains already included
- 🔄 Daily auto-sync from self-maintained Disposable Email Blocklist repository
- 🧠 Smart validation rule for form requests
- 🛡️ Optional RFC, DNS, spoof, and filter validation modes
- ⚙️ Runtime email checking via helper and facade
- 🧩 Blade directive support for conditionals
- 🌐 Auto-sync with remote domain lists
- 📝 Add your own custom blacklist with ease
- ✅ Allow trusted domains with a whitelist
- 🧱 Block subdomains of disposable parent domains
- 🔎 Detailed runtime results via
Disposable::check() - 📊 Domain stats command via
php artisan disposable:stats - 🧠 Optional caching for performance
- ⚡️ Zero-configuration setup with publishable config
- ✅ Compatible with Laravel 10, 11, 12, and 13
Complete documentation for installation, configuration, validation, syncing, caching, and troubleshooting is available at:
https://erag.in/laravel-disposable-email/
This package uses the official Disposable Email Blocklist, a self-developed and actively maintained repository.
- 📦 Official Blocklist Repository
https://github.com/eramitgupta/disposable-email
The blocklist repository is updated every day via GitHub Actions to:
- 📥 Fetch the latest disposable email domains
- 🧹 Normalize and clean domain names
- 🔍 Remove duplicates and invalid entries
- 📦 Generate the latest blocklist
- 🚀 Publish changes automatically
This package always uses the latest version of the maintained blocklist.
If you like this package, give it a GitHub star.