Disposable
Usage
Use it in your Go code
import "github.com/lavab/disposable"
if _, ok := disposable.Domains[strings.ToLower(aDomain)]; ok {
log.Println("Domain", aDomain, "is not reliable, sorry.")
panic("Why not panic?")
}
Get a plaintext or json file
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).
Run the generator
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
cd $GOHOME/src/github.com/lavab/disposable
go run .generate/generate.go
Credit
Andrei's recommendations
I recommend these services, they're fast and have good, non-spammy UI: