Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Temporary Email Blocklist

A small utility designed to detect temporary / disposable email addresse during user registration. This repository provides a class and a list of known disposable email providers.

✨ Features

Detects whether an email belongs to a disposable email service

Easy to integrate into any signup or authentication flow

Contains an extensible and maintainable domain list

📦 Example Usage

$checker = new DisposableEmailChecker();

if ($checker->isDisposable($email)) {
    echo "Email rejected (temporary/disposable).";
}

or

public bool IsDisposableEmail(string email)
{
    if (string.IsNullOrWhiteSpace(email)) return false;

    var parts = email.Split('@');
    if (parts.Length != 2) return false;

    var domain = parts[1];
    return DisposableEmailDomainsConfiguration.DisposableDomains.Contains(domain);
}

🤝 Contributing

Feel free to open issues or submit pull requests to add new disposable email domains or improve the detection logic.

📜 License

This project is licensed under the MIT License.

About

A small utility designed to detect temporary / disposable email addresses during user registration. This repository provides a class and a list of known disposable email providers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages