mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-22 08:38:12 +08:00
Added Bash script example, + spymail.com domain (#350)
This commit is contained in:
parent
b52a46ab31
commit
8866a2ab76
23
README.md
23
README.md
@ -163,3 +163,26 @@ var addr = new MailAddress(email);
|
|||||||
if (IsBlocklisted(addr.Host)))
|
if (IsBlocklisted(addr.Host)))
|
||||||
throw new ApplicationException("Email is blocklisted.");
|
throw new ApplicationException("Email is blocklisted.");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Bash
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script checks if an email address is temporary.
|
||||||
|
|
||||||
|
# Read blocklist file into a bash array
|
||||||
|
mapfile -t blocklist < disposable_email_blocklist.conf
|
||||||
|
|
||||||
|
# Check if email domain is in blocklist
|
||||||
|
if [[ " ${blocklist[@]} " =~ " ${email#*@} " ]]; then
|
||||||
|
message="Please enter your permanent email address."
|
||||||
|
return_value=false
|
||||||
|
else
|
||||||
|
return_value=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Return result
|
||||||
|
echo "$return_value"
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -2775,6 +2775,7 @@ spr.io
|
|||||||
spritzzone.de
|
spritzzone.de
|
||||||
spruzme.com
|
spruzme.com
|
||||||
spybox.de
|
spybox.de
|
||||||
|
spymail.com
|
||||||
squizzy.de
|
squizzy.de
|
||||||
squizzy.net
|
squizzy.net
|
||||||
sroff.com
|
sroff.com
|
||||||
|
Loading…
Reference in New Issue
Block a user