Skip to main content

Django-email-blacklist

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.

Installation

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"

Usage

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

Credits

This is a fork from DisposableEmailChecker by aaronbassett, maintained by Zeioth.

Metadata

Release files for django-email-blacklist 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-email-blacklist 1.0.1
File Size Uploaded Provenance Actions
django-email-blacklist-1.0.1.tar.gz 1.8 kB Without provenance Details for django-email-blacklist-1.0.1.tar.gz

Release files / django-email-blacklist-1.0.1.tar.gz

Download URL django-email-blacklist-1.0.1.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5cfdde6107c3b016dd1bcc19c056b1cf7ee6a958b14d68e2a524a6bf3524318a
BLAKE2b-256 checksum
How to use checksums
7062bff1af5af42e7337a75359a80ce112e7d579969450d821016757097238f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-email-blacklist 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page