This is a simple, auto-updating (sort of) list of domains of temporary (or disposable) mailboxes.
It can be used to quickly weed out people not really interested in your service.
import "github.com/lavab/disposable"
if disposable.Domain("gmail.com") {
panic("Uh oh!")
}
Curling is fun:
# One domain per line
curl https://raw.githubusercontent.com/lavab/disposable/master/domains.txt
# A JSON array
curl https://raw.githubusercontent.com/lavab/disposable/master/domains.json
You can just download the files (txt or json).
disposable
comes batteries-included. You can run .generate/generate.go
to get a more up-to-date list of domains. However, some links might be dead. PRs are appreciated.
go get -u github.com/lavab/disposable
# It's important to be in the correct folder when running the command.
cd $GOHOME/src/github.com/lavab/disposable
go run .generate/generate.go
- https://gist.github.com/adamloving/4401361
- https://gist.github.com/michenriksen/8710649
- https://github.com/ivolo/disposable-email-domains
I recommend these services, they're fast and have good, non-spammy UI:
- http://10minutemail.com (one of the sites for which I disable the ad-blocker)
- https://www.guerrillamail.com (https)