Compare commits

...

6 Commits

Author SHA1 Message Date
Zwyx
a0d1c0c447
Merge f254c06a38 into 7914d03404 2024-05-08 10:06:58 -04:00
Martin Anderson
7914d03404
Update disposable_email_blocklist.conf (#477) 2024-05-03 23:35:19 +02:00
GitTH
b01a82d3b8
Add active domains from tempr.email (#475)
* Add active domains from tempr.email

* Remove registered public suffixes
2024-04-23 23:55:42 +02:00
Martin Cech
c38d667d7f
we have bash now 2024-04-20 00:45:06 +02:00
Martin Cech
4521e04e67
remove entry that turned into a public suffix 2024-04-20 00:38:34 +02:00
Zwyx
f254c06a38
Implement sub domain matching in JS
Changelog mentions that _the implementers should take care of matching the second level domain names properly_, however this wasn't implemented in code examples. At least not in JS.
2024-02-26 15:00:53 +08:00
2 changed files with 106 additions and 4 deletions

View File

@ -35,7 +35,7 @@ Changelog
Example Usage
=============
TOC: [Python](#python), [PHP](#php), [Go](#go), [Ruby on Rails](#ruby-on-rails), [NodeJS](#nodejs), [C#](#c), [Java](#java)
TOC: [Python](#python), [PHP](#php), [Go](#go), [Ruby on Rails](#ruby-on-rails), [NodeJS](#nodejs), [C#](#c), [bash](#bash), [Java](#java)
### Python
```Python
@ -128,10 +128,21 @@ async function isDisposable(email) {
if (!blocklist) {
const content = await readFile('disposable_email_blocklist.conf', { encoding: 'utf-8' })
blocklist = content.split('\r\n').slice(0, -1)
blocklist = content.split('\r\n').slice(0, -1) // Change to `'\n'` depending on your system
}
return blocklist.includes(email.split('@')[1])
const domains = Array.from((email.split('@')[1] || '').matchAll(/(?=(?:\.|^)(.*))/g))
.map(match => match[1])
.slice(0, -1);
// Or, longer but easier to read for people unfamiliar with regex:
// const domains = (email.split('@')[1] || '')
// .split('.')
// .reverse()
// .reduce((acc, cur) => [...acc, `${cur}${acc.length ? `.${acc[acc.length - 1]}` : ''}`], []) // use `reduce<string[]>` with TypeScript
// .slice(1);
return domains.map(domain => blocklist.includes(domain || '')).some(Boolean);
}
```

View File

@ -170,6 +170,8 @@ a-bc.net
a45.in
a7996.com
aa5zy64.com
aaqwe.ru
aaqwe.store
abacuswe.us
abakiss.com
abcmail.email
@ -217,6 +219,7 @@ adpugh.org
adroh.com
adsd.org
adubiz.info
adult-work.info
advantagewe.us
advantimo.com
adventurewe.us
@ -486,6 +489,8 @@ bluedumpling.info
bluewerks.com
bnote.com
boatmail.us
bobgf.ru
bobgf.store
bobmail.info
bobmurchison.com
bofthew.com
@ -499,8 +504,14 @@ borged.org
bot.nu
boun.cr
bouncr.com
box-mail.ru
box-mail.store
boxem.ru
boxem.store
boxformail.in
boximail.com
boxlet.ru
boxlet.store
boxmail.lol
boxomail.live
boxtemp.com.br
@ -572,6 +583,8 @@ catgroup.uk
cavi.mx
cbair.com
cbes.net
cbty.ru
cbty.store
cc.liamria
ccmail.uk
cdfaq.com
@ -625,7 +638,6 @@ clipmail.eu
clixser.com
clonemoi.tk
cloud-mail.top
cloudns.cx
clout.wiki
clrmail.com
cmail.club
@ -1015,10 +1027,14 @@ envy17.com
eoffice.top
eoopy.com
epb.ro
epbox.ru
epbox.store
ephemail.net
ephemeral.email
eposta.buzz
eposta.work
epostal.ru
epostal.store
eqiluxspam.ga
ereplyzy.com
ericjohnson.ml
@ -1099,6 +1115,8 @@ fangoh.com
fansworldwide.de
fantasymail.de
farrse.co.uk
fasssd.ru
fasssd.store
fast-email.info
fast-mail.fr
fastacura.com
@ -1157,6 +1175,8 @@ fly-ts.de
flyinggeek.net
flymail.tk
flyspam.com
fncp.ru
fncp.store
foobarbot.net
footard.com
foreastate.com
@ -1227,6 +1247,8 @@ funnycodesnippets.com
funnymail.de
furzauflunge.de
futuramind.com
fuvk.ru
fuvk.store
fuwa.be
fuwa.li
fuwamofu.com
@ -1293,6 +1315,8 @@ getsimpleemail.com
gett.icu
gexik.com
ggmal.ml
ggvk.ru
ggvk.store
ghosttexter.de
giacmosuaviet.info
giaiphapmuasam.com
@ -1305,6 +1329,7 @@ ginzi.net
ginzy.co.uk
ginzy.eu
giratex.com
girlfriend.ru
girlmail.win
girlsindetention.com
girlsundertheinfluence.com
@ -1367,6 +1392,7 @@ griuc.schule
grn.cc
groupbuff.com
grr.la
gruene-no-thanks.xyz
grugrug.ru
gruz-m.ru
gs-arc.org
@ -1442,6 +1468,7 @@ heros3.com
herp.in
herpderp.nl
hezll.com
hi2.in
hi5.si
hiddentragedy.com
hidebox.org
@ -1495,6 +1522,8 @@ hushmail.cf
huskion.net
hvastudiesucces.nl
hwsye.net
hxopi.ru
hxopi.store
hypenated-domain.com
i2pmail.org
i6.cloudns.cc
@ -1502,6 +1531,7 @@ iaoss.com
ibnuh.bz
icantbelieveineedtoexplainthisshit.com
icemail.club
ich-essen-fleisch.bio
ichigo.me
icx.in
icx.ro
@ -1547,6 +1577,8 @@ inboxdesign.me
inboxed.im
inboxed.pw
inboxkitten.com
inboxnow.ru
inboxnow.store
inboxproxy.com
inboxstore.me
inclusiveprogress.com
@ -1793,6 +1825,8 @@ laste.ml
lastmail.co
lastmail.com
lawlita.com
laxex.ru
laxex.store
laymro.com
lazyinbox.com
lazyinbox.us
@ -1922,7 +1956,13 @@ mailbox80.biz
mailbox82.biz
mailbox87.de
mailbox92.biz
mailboxify.ru
mailboxify.store
mailboxly.ru
mailboxly.store
mailboxy.fun
mailboxy.ru
mailboxy.store
mailbucket.org
mailcat.biz
mailcatch.com
@ -2082,6 +2122,7 @@ mebelnu.info
mechanicalresumes.com
medkabinet-uzi.ru
meepsheep.eu
mehr-bitcoin.de
meidecn.com
meinspamschutz.de
meltedbrownies.com
@ -2242,6 +2283,8 @@ myzx.com
mzico.com
n1nja.org
na-cat.com
naah.ru
naah.store
nabuma.com
nada.email
nada.ltd
@ -2298,12 +2341,15 @@ nnh.com
nnot.net
nnoway.ru
no-spam.ws
no-trash.ru
no-ux.com
noblepioneer.com
nobugmail.com
nobulk.com
nobuma.com
noclickemail.com
nocp.ru
nocp.store
nodezine.com
nogmailspam.info
noicd.com
@ -2374,6 +2420,8 @@ okinawa.li
okrent.us
okzk.com
olimp-case.ru
oloh.ru
oloh.store
olypmall.ru
omail.pro
omnievents.org
@ -2398,6 +2446,8 @@ oolus.com
oonies-shoprus.ru
oopi.org
oosln.com
oovk.ru
oovk.store
opayq.com
openavz.com
opendns.ro
@ -2457,6 +2507,7 @@ peterdethier.com
petloca.com
petrzilka.net
pewpewpewpew.pw
pflege-schoene-haut.de
pfui.ru
phone-elkey.ru
photo-impact.eu
@ -2474,6 +2525,8 @@ pisls.com
pitaniezdorovie.ru
pivo-bar.ru
pixiil.com
pizu.ru
pizu.store
pizzajunk.com
pjjkp.com
placebomail10.com
@ -2503,6 +2556,8 @@ porsh.net
posdz.com
posta.store
postacin.com
postbx.ru
postbx.store
postonline.me
poutineyourface.com
powered.name
@ -2595,6 +2650,7 @@ raetp9.com
rainbowly.ml
raketenmann.de
ramenmail.de
ramin200.site
rancidhome.net
randomail.io
randomail.net
@ -2679,6 +2735,8 @@ rustydoor.com
ruu.kr
rvb.ro
ryteto.me
ryyr.ru
ryyr.store
s0ny.net
s33db0x.com
sabrestlouis.com
@ -2852,6 +2910,7 @@ soon.it
spacebazzar.ru
spam-be-gone.com
spam.care
spam.ceo
spam.la
spam.org.es
spam.su
@ -3032,6 +3091,7 @@ teewars.org
tefl.ro
telecomix.pl
teleg.eu
telegmail.com
teleworm.com
teleworm.us
tellos.xyz
@ -3195,6 +3255,7 @@ tqosi.com
trackden.com
tradermail.info
tranceversal.com
trap-mail.de
trash-amil.com
trash-mail.at
trash-mail.cf
@ -3381,9 +3442,22 @@ visal168.tk
visignal.com
vixletdev.com
vixtricks.com
vjoid.ru
vjoid.store
vjuum.com
vkbb.ru
vkbb.store
vkbt.ru
vkbt.store
vkcbt.ru
vkcbt.store
vkcode.ru
vkfu.ru
vkfu.store
vkpr.store
vkr1.com
vkrr.ru
vkrr.store
vmailing.info
vmani.com
vmpanda.com
@ -3437,6 +3511,8 @@ webm4il.info
webmail24.top
webtrip.ch
webuser.in
wecp.ru
wecp.store
wee.my
wef.gr
weg-werf-email.de
@ -3520,6 +3596,8 @@ wuzak.com
wuzup.net
wuzupmail.net
wwjmp.com
wwvk.ru
wwvk.store
wwwnew.eu
wxnw.net
x24.com
@ -3534,6 +3612,7 @@ xcpy.com
xemaps.com
xemne.com
xents.com
xepa.ru
xjoi.com
xkx.me
xl.cx
@ -3555,7 +3634,11 @@ xxi2.com
xxlocanto.us
xxolocanto.us
xxqx3802.com
xxvk.ru
xxvk.store
xy9ce.tk
xylar.ru
xylar.store
xyzfree.net
xzsok.com
yabai-oppai.tk
@ -3570,6 +3653,8 @@ yarnpedia.ga
ycare.de
ycn.ro
ye.vc
yecp.ru
yecp.store
yedi.org
yeezus.ru
yep.it
@ -3593,6 +3678,8 @@ youmail.ga
youmailr.com
youneedmore.info
youpymail.com
your5.ru
your5.store
yourdomain.com
youremail.cf
yourewronghereswhy.com
@ -3607,6 +3694,8 @@ yugasandrika.com
yui.it
yuoia.com
yuurok.com
yxdad.ru
yxdad.store
yxzx.net
yyolf.net
z-o-e-v-a.ru
@ -3619,6 +3708,8 @@ zaktouni.fr
zarabotokdoma11.ru
zasod.com
zaym-zaym.ru
zcovz.ru
zcovz.store
zcrcd.com
zdenka.net
ze.tc