Created
September 11, 2012 14:30
-
-
Save marteinn/3699113 to your computer and use it in GitHub Desktop.
email_disposable.py - Validate if email is disposable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'martinsandstrom' | |
""" | |
SOURCE: | |
Most of the sources come from: | |
http://torvpn.com/temporaryemail.html | |
USAGE: | |
import email_disposable | |
if email_disposable.check_if_disposable(email): | |
raise Exception("It's disposable") | |
else: | |
raise Exception("It's not disposable") | |
RETURNS: | |
Returns True if disposable, False if not. | |
""" | |
DISPOSABLE_EMAIL_DOMAINS = [ | |
"ingetspam.com", | |
"jetable.fr.nf", | |
"mail.mezimages.net", | |
"mailscrap.com", | |
"mega.zik.dj", | |
"moncourrier.fr.nf", | |
"monmail.fr.nf", | |
"myspamless.com", | |
"netmails.net", | |
"nice-4u.com", | |
"nomail.xl.cx", | |
"nospam.ze.tc", | |
"objectmail.com", | |
"proxymail.eu", | |
"rcpt.at", | |
"speed.1s.fr", | |
"temp.emeraldwebmail.com", | |
"tilien.com", | |
"trash-mail.at", | |
"trashmail.me", | |
"wegwerfmail.de", | |
"wegwerfmail.net", | |
"wegwerfmail.org", | |
"yopmail.fr", | |
"yopmail.net", | |
"youmailr.com", | |
"ypmail.webarnak.fr.eu.org", | |
"gishpupy.com", | |
"explodemail.com", | |
"enterto.com", | |
"disposableinbox.com", | |
"deagot.com", | |
"courriel.fr.nf", | |
"123-m.com", | |
"12minutemail.com", | |
"cool.fr.nf", | |
"0-mail.com", | |
"0815.ru", | |
"baxomale.ht.cx", | |
"0clickemail.com", | |
"10minutemail.com", | |
"20minutemail.com", | |
"2prong.com", | |
"30minutemail.com", | |
"3d-painting.com", | |
"4warding.com", | |
"4warding.net", | |
"4warding.org", | |
"60minutemail.com", | |
"amilegit.com", | |
"anonbox.net", | |
"anonymbox.com", | |
"antispam.de", | |
"beefmilk.com", | |
"binkmail.com", | |
"bio-muesli.net", | |
"bobmail.info", | |
"bofthew.com", | |
"brefmail.com", | |
"bsnow.net", | |
"bugmenot.com", | |
"bumpymail.com", | |
"cosmorph.com", | |
"courrieltemporaire.com", | |
"cubiclink.com", | |
"curryworld.de", | |
"cust.in", | |
"dacoolest.com", | |
"dandikmail.com", | |
"dayrep.com", | |
"deadaddress.com", | |
"despam.it", | |
"devnullmail.com", | |
"discardmail.com", | |
"discardmail.de", | |
"disposemail.com", | |
"dispostable.com", | |
"dodgeit.com", | |
"dodgit.com", | |
"dodgit.org", | |
"donemail.ru", | |
"dontreg.com", | |
"dontsendmespam.de", | |
"dump-email.info", | |
"dumpyemail.com", | |
"e4ward.com", | |
"email60.com", | |
"emailigo.de", | |
"emailinfive.com", | |
"emailmiser.com", | |
"emailsensei.com", | |
"emailtemporario.com.br", | |
"emailwarden.com", | |
"emailx.at.hm", | |
"fakeinbox.com", | |
"fakeinformation.com", | |
"fastacura.com", | |
"filzmail.com", | |
"fizmail.com", | |
"fr33mail.info", | |
"get1mail.com", | |
"get2mail.fr", | |
"getonemail.com", | |
"getonemail.net", | |
"gishpuppy.com", | |
"great-host.in", | |
"guerillamail.com", | |
"guerrillamail.com", | |
"guerrillamailblock.com", | |
"h.mintemail.com", | |
"haltospam.com", | |
"hochsitze.com", | |
"hotpop.com", | |
"hulapla.de", | |
"ieatspam.eu", | |
"ieatspam.info", | |
"imails.info", | |
"incognitomail.com", | |
"incognitomail.net", | |
"incognitomail.org", | |
"insorg-mail.info", | |
"ipoo.org", | |
"jetable.com", | |
"jetable.net", | |
"jetable.org", | |
"jnxjn.com", | |
"junk1e.com", | |
"keepmymail.com", | |
"kir.ch.tc", | |
"klzlk.com", | |
"kulturbetrieb.info", | |
"lhsdv.com", | |
"litedrop.com", | |
"lol.ovpn.to", | |
"lookugly.com", | |
"lopl.co.cc", | |
"m4ilweb.info", | |
"mail-temporaire.fr", | |
"mail.by", | |
"mail4trash.com", | |
"mailcatch.com", | |
"maileater.com", | |
"mailexpire.com", | |
"mailin8r.com", | |
"mailinator.com", | |
"mailinator.net", | |
"mailinator2.com", | |
"mailme.ir", | |
"mailme.lv", | |
"mailmetrash.com", | |
"mailnator.com", | |
"mailnesia.com", | |
"mailnull.com", | |
"mailslite.com", | |
"mailzilla.org", | |
"mbx.cc", | |
"meltmail.com", | |
"messagebeamer.de", | |
"mierdamail.com", | |
"mintemail.com", | |
"monemail.fr.nf", | |
"msa.minsmail.com", | |
"mt2009.com", | |
"mypartyclip.de", | |
"myphantomemail.com", | |
"mytrashmail.com", | |
"nepwk.com", | |
"no-spam.ws", | |
"nobulk.com", | |
"noclickemail.com", | |
"nogmailspam.info", | |
"nomail2me.com", | |
"nomorespamemails.com", | |
"nospam4.us", | |
"nospamfor.us", | |
"nospamthanks.info", | |
"notmailinator.com", | |
"nowmymail.com", | |
"nus.edu.sg", | |
"nwldx.com", | |
"onewaymail.com", | |
"online.ms", | |
"ovpn.to", | |
"owlpic.com", | |
"pjjkp.com", | |
"politikerclub.de", | |
"pookmail.com", | |
"prtnx.com", | |
"qq.com", | |
"quickinbox.com", | |
"recode.me", | |
"regbypass.com", | |
"rppkn.com", | |
"rtrtr.com", | |
"s0ny.net", | |
"safe-mail.net", | |
"safetymail.info", | |
"safetypost.de", | |
"sandelf.de", | |
"saynotospams.com", | |
"selfdestructingmail.com", | |
"sendspamhere.com", | |
"sharklasers.com", | |
"shitmail.me", | |
"skeefmail.com", | |
"slopsbox.com", | |
"smellfear.com", | |
"snakemail.com", | |
"sofimail.com", | |
"sofort-mail.de", | |
"sogetthis.com", | |
"spam.la", | |
"spam.su", | |
"spamavert.com", | |
"spambob.net", | |
"spambob.org", | |
"spambog.com", | |
"spambog.de", | |
"spambog.ru", | |
"spambox.info", | |
"spambox.irishspringrealty.com", | |
"spambox.us", | |
"spamcero.com", | |
"spamday.com", | |
"spamfree24.com", | |
"spamfree24.de", | |
"spamfree24.eu", | |
"spamfree24.info", | |
"spamfree24.net", | |
"spamfree24.org", | |
"spamgourmet.com", | |
"spamherelots.com", | |
"spamhole.com", | |
"spamify.com", | |
"spaminator.de", | |
"spamkill.info", | |
"spaml.com", | |
"spaml.de", | |
"spammotel.com", | |
"spamobox.com", | |
"spamspot.com", | |
"spamthis.co.uk", | |
"spamthisplease.com", | |
"supergreatmail.com", | |
"supermailer.jp", | |
"suremail.info", | |
"teewars.org", | |
"teleworm.com", | |
"tempalias.com", | |
"tempe-mail.com", | |
"tempemail.biz", | |
"tempemail.com", | |
"tempemail.net", | |
"tempinbox.co.uk", | |
"tempinbox.com", | |
"tempmail.it", | |
"tempmail2.com", | |
"tempomail.fr", | |
"temporarioemail.com.br", | |
"temporaryemail.net", | |
"temporaryinbox.com", | |
"thanksnospam.info", | |
"thankyou2010.com", | |
"thisisnotmyrealemail.com", | |
"throwawayemailaddress.com", | |
"tmailinator.com", | |
"tradermail.info", | |
"trash-amil.com", | |
"trash-mail.com", | |
"trash-mail.de", | |
"trash2009.com", | |
"trashemail.de", | |
"trashmail.at", | |
"trashmail.com", | |
"trashmail.net", | |
"trashmail.ws", | |
"trashmailer.com", | |
"trashymail.com", | |
"trashymail.net", | |
"trillianpro.com", | |
"tyldd.com", | |
"uggsrock.com", | |
"veryrealemail.com", | |
"webm4il.info", | |
"wegwerfemail.de", | |
"wh4f.org", | |
"whyspam.me", | |
"willselfdestruct.com", | |
"wuzupmail.net", | |
"yopmail.com", | |
"yuurok.com", | |
"zehnminutenmail.de", | |
"zippymail.info", | |
] | |
def check_if_disposable(email): | |
for domain in DISPOSABLE_EMAIL_DOMAINS: | |
if email.endswith(domain): | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment