Skip to main content

Python class for use with Django to detect Disposable Emails.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-email-blacklist-1.0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file django-email-blacklist-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-email-blacklist-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5cfdde6107c3b016dd1bcc19c056b1cf7ee6a958b14d68e2a524a6bf3524318a
MD5 bcd98eddf9882005e6cc0c09d580412b
BLAKE2b-256 7062bff1af5af42e7337a75359a80ce112e7d579969450d821016757097238f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page