Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amieiro/disposable-email-domains
Disposable email domain lists, used in disposable email services, generated every quarter of an hour, in txt and JSON format.
https://github.com/amieiro/disposable-email-domains
disposable disposable-check disposable-domains disposable-email disposable-email-domains disposable-emails domain domains email email-parsing email-validation email-verification validation-rules
Last synced: 3 days ago
JSON representation
Disposable email domain lists, used in disposable email services, generated every quarter of an hour, in txt and JSON format.
- Host: GitHub
- URL: https://github.com/amieiro/disposable-email-domains
- Owner: amieiro
- Created: 2020-07-01T12:31:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T14:43:15.000Z (14 days ago)
- Last Synced: 2024-10-29T15:14:05.656Z (14 days ago)
- Topics: disposable, disposable-check, disposable-domains, disposable-email, disposable-email-domains, disposable-emails, domain, domains, email, email-parsing, email-validation, email-verification, validation-rules
- Language: PHP
- Homepage:
- Size: 114 MB
- Stars: 29
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-opensource-email - disposable-email-domains (another one) - Disposable email domain lists, used in disposable email services, generated every quarter of an hour, in txt and JSON format. - `MIT`, `PHP` (Security / Disposable emails domain list)
README
## Disposable Email Domains
Disposable email domain lists, used in disposable email services, generated every quarter of an hour, in txt and JSON format.
You can find [here](https://github.com/amieiro/disposable-email-domains/blob/master/creator/app/Console/Commands/CreateDisposableEmailDomainsFilesCommand.php#L16) the lists used by this project to obtain the blocked and allowed domains. This project maintains this list of [secure domains](https://github.com/amieiro/disposable-email-domains/blob/master/secureDomains.txt).
## Contact
If you see that some domains should not be in the deny list, if you want to add some other list or if you want
to suggest some change, improvement, ... you can contact me through the
[project issues](https://github.com/amieiro/disposable-email-domains/issues) or in my
[personal blog](https://www.jesusamieiro.com/contactaconmigo/).## Files
- **denyDomains**. List of known e-mail domains used disposable email services and should be blocked. Available in [txt](https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/denyDomains.txt) and [json](https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/denyDomains.json) format.
- **allowDomains**. List of well-known email domains that are not disposable and should be allowed. Available in [txt](https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/allowDomains.txt) and [json](https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/allowDomains.json) format.
- **secureDomains**. Internal list of known e-mail domains that are secure. Used to generate the denyDomains files.## Usage
You can use these files in your projects to block disposable email domains.
- First, you should check if the domain is in the allow list, using the allowDomains file.
- If it is not, you should check if the domain is in the deny list, using the denyDomains file.For example, in PHP:
```php
$emailDomain = 'gmail.com';
$allowDomains = file_get_contents('https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/allowDomains.json');
$allowDomains = json_decode($allowDomains, true);
if (in_array($emailDomain, $allowDomains)) {
echo 'This domain is allowed.';
}$emailDomain = 'temp-mail.org';
$denyDomains = file_get_contents('https://raw.githubusercontent.com/amieiro/disposable-email-domains/master/denyDomains.json');
$denyDomains = json_decode($denyDomains, true);
if (in_array($emailDomain, $denyDomains)) {
echo 'This domain is disposable.';
}
```## License
This project and the files are open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).