How to block temporary email addresses at signup (and why a blocklist alone isn't enough)
Temp-mail services create fresh domains faster than any list can follow. Here are the four layers that actually stop them, cheapest first, and the mistakes that block real customers.
A temporary email address takes ten seconds to get and costs nothing. That is exactly why people use them to grab a second free trial, farm referral credits or sign up bots. If your product has a free plan or a trial, some of your new accounts are already using them.
Blocking them looks easy: download a list of disposable domains and reject anything on it. It works for the well-known services. It fails against the ones that matter, because temp-mail sites now rotate through brand-new domains every day.
Layer 1: a maintained list of disposable domains
Start with the open lists. disposable-email-domains on GitHub is the best known, and FakeFilter and mailchecker add more. Together they cover well over a hundred thousand domains. Refresh them daily, not once at launch.
Two rules keep this layer safe. Never let a list flag a real mailbox provider (Gmail, Outlook, iCloud, Proton, Yahoo) even if a bad entry slips in. And remember that `+` aliases and dots in Gmail addresses are legitimate; don't treat them as throwaway on their own.
Layer 2: can the domain receive mail at all?
A DNS lookup for the domain's MX records tells you whether mail can be delivered there. No MX record (and no fallback A record) means nobody will ever read your welcome email. It costs nothing and catches typo domains and made-up ones that no list will ever contain.
Do it with a short timeout, and treat a DNS failure as unknown, not as fake. Your signup form should never reject someone because a resolver had a bad minute.
Layer 3: look at where the mail goes
This is the layer most blocklists miss. A temp-mail service can register a hundred new domains, but it points all of them at the same few mail servers. Look up the MX hosts of a new domain and compare them with the mail servers your known throwaway domains use. If a brand-new domain delivers to the same servers as fifty known throwaways, it is a throwaway too, on the day it appears.
Be careful with shared hosts. Google Workspace, Microsoft 365, Cloudflare Email Routing and registrar forwarding serve millions of real businesses, so they must never count as throwaway servers. Only flag a mail server when throwaway domains clearly outnumber real ones on it.
Domains are cheap. Mail servers aren't. Block the server and every new domain on it is caught.
Layer 4: has this address been reported before?
Some fake signups use real, permanent inboxes, so no domain check will catch them. Community databases help here. StopForumSpam collects emails and IPs that website owners have reported for spam registrations, and lets you look an address up by its MD5 hash, so you never have to send the readable address.
Treat a report as a reason to review, not an automatic block. Recent, repeated reports mean much more than one report from three years ago.
Mistakes that cost you real customers
- Blocking every free email provider. Plenty of real buyers sign up with Gmail. Use it as context, not a verdict.
- Failing closed when a check times out. If DNS or an outside service doesn't answer, let the signup through and check later.
- A wall with no explanation. Say "Please use a permanent email address", and suggest the fix when it's a typo (`gmial.com` → `gmail.com`).
- Re-checking the same rejected address on every click. Keep the button disabled until the user changes the email.
Doing it with one API call
You can build all four layers yourself: schedule the list downloads, run the DNS and MX lookups, keep a mail-server table, cache the outside answers. Or send the address to Signet, which runs every layer above (plus phone and IP checks) and returns a verdict, a risk score and the named reason, such as `disposable_domain`, `disposable_mail_server` or `spam_reported_email`.
Obvious throwaways settled by the free rules and lists cost 0 credits, so you only pay for the checks that needed real work.