Skip to content

A list of disposable/temporary email address domains

License

Notifications You must be signed in to change notification settings

carliblaz/disposable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disposable

GoDoc

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.

Usage

Use it in your Go code

import "github.com/lavab/disposable"

if disposable.Domain("gmail.com") {
    panic("Uh oh!")
}

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
# 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

Credit

Andrei's recommendations

I recommend these services, they're fast and have good, non-spammy UI:

About

A list of disposable/temporary email address domains

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%