Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
django-email-blacklist
Advanced tools
Python class to detect fake email providers. Checks each email against a blacklist of ~890 domains used by various disposable email services. Tested in production with Django. This package requires Python 3, for Python 2.7 support see here. <https://github.com/aaronbassett/DisposableEmailChecker>
__
Install it using pip
and add it to your Django INSTALLED_APPS::
$ pip install django-email-blacklist
Create a folder in your templates directory and download the example email blacklist::
$ wget https://raw.github.com/zeioth/django-email-blacklist/master/disposable_email_domains.txt
Add this to to your settings.py
::
DISPOSABLE_EMAIL_DOMAINS = "/path_to_your/disposable_email_domains.txt"
To use the checker in your own scripts::
>>> from django_email_blacklist import DisposableEmailChecker
>>> email_checker = DisposableEmailChecker()
>>> email_checker.is_disposable("foo@guerrillamail.com")
True
This is a fork from DisposableEmailChecker by aaronbassett, maintained by Zeioth.
FAQs
Python class for use with Django to detect Disposable Emails.
We found that django-email-blacklist demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.