Help center
How to block disposable emails at signup
Detect throwaway email addresses at signup with a server-side check, then decide whether to reject them, accept them with limits, or ask for a real address.
Updated 2026-11-23
Check the email on your server when the form is submitted, and act on checks.disposable. Rejecting with a clear message works when each account costs you money. Accepting and limiting works better elsewhere. Blocking disposable domains stops casual abuse, not determined abuse, so pair it with a confirmation email.
What counts as disposable
A disposable email address comes from a service that gives anyone a temporary inbox with no signup. The domains change often, which is why a hardcoded list falls behind. Disposable email detection covers how lists are built and where they fail.
Free way
- Test an address in the disposable email checker. It also flags role addresses and free providers.
- For a quick look at the domain, use the email verifier.
- Decide your policy before you code it: reject, accept with limits, or ask for another address.
With the API
curl https://api.qelka.com/v1/email \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "jane.doe@mailinator.com", "mode": "fast"}'
Fast mode skips the mailbox check and is the right choice for a form: it does not wait for a mail server. It costs 1 credit. The response:
{
"status": "risky",
"reason": "disposable",
"checks": { "syntax": true, "mx": true, "smtp": null, "disposable": true, "role": false, "free_provider": false },
"score": 50
}
| Field | Use |
|---|---|
checks.disposable |
true is the flag. |
reason |
disposable with status: "risky". |
did_you_mean |
Show it for typos before judging the address. |
checks.role, checks.free_provider |
Context: info@ and gmail.com are not disposable. |
In Node.js:
export async function emailDecision(email) {
const response = await fetch('https://api.qelka.com/v1/email', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ email, mode: 'fast' }),
signal: AbortSignal.timeout(5000),
})
if (!response.ok) return 'accept'
const result = await response.json()
if (result.status === 'undeliverable') return 'ask_correction'
if (result.checks.disposable) return 'reject_disposable'
return 'accept'
}
It accepts when the API fails, so a service problem never stops a signup. Block disposable email signups has the longer guide, and the email reference lists every field.
Write a message that helps
Say what happened and what to do: "Please use a permanent email address. Temporary inboxes cannot receive our confirmation." Do not reveal your list or your rules, and do not call the person a spammer.
Choose a policy
| Situation | Policy |
|---|---|
| Free trial that costs you money | Reject, or require a code and limit usage. |
| Community or forum | Accept, throttle posting until confirmed. |
| Newsletter | Accept. |
| Payments, payouts | Require a permanent address. |
Common mistakes
- Checking in the browser. Your key would be public. Check on the server.
- Using a static list. It stops matching new domains within weeks.
- Rejecting
riskyin general.catch_allandmailbox_fullare risky for other reasons. Match onchecks.disposable. - No fallback. If the API is down, let the signup through.
- Skipping the confirmation email. It is what proves the person owns the inbox.
Related
Frequently asked questions
How do I detect a disposable email address?
checks.disposable: true and the reason disposable for these addresses, and the check works in fast mode, without contacting any mail server.Should I reject disposable emails or just flag them?
Can people get around disposable email blocking?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time