Skip to content

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

  1. Test an address in the disposable email checker. It also flags role addresses and free providers.
  2. For a quick look at the domain, use the email verifier.
  3. Decide your policy before you code it: reject, accept with limits, or ask for another address.

With the API

bash
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:

json
{
  "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:

javascript
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 risky in general. catch_all and mailbox_full are risky for other reasons. Match on checks.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.

Frequently asked questions

How do I detect a disposable email address?
Compare the domain with a maintained list of disposable email services. Static lists age quickly because new domains appear daily, so use a checker that updates its list. The email endpoint returns 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?
It depends on the cost of an abuser. If a free trial costs you money, reject or require a stronger step. For a newsletter, accepting is harmless. A middle path is to accept, mark the account as low trust and limit what it can do until the person confirms a permanent address. Always show a clear message when you reject.
Can people get around disposable email blocking?
Yes. A determined person can use a new domain, a forwarding alias or a free mailbox at a normal provider. Blocking disposable domains removes casual abuse, not all of it. Combine it with a confirmation email, per-IP limits and a check of the signup's IP address.

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