DRY_RUN before you deny anything.What is a disposable email address?
A disposable email address is a temporary inbox from a service that hands out addresses without registration, often for minutes or hours. To detect one, check the domain against maintained lists of disposable domains, match subdomains of listed domains, check whether the domain's mail servers belong to a known disposable provider, and poll providers that rotate domains. No method catches every case.
Services such as Mailinator, Guerrilla Mail, and mail.tm let anyone open a page or call an API, get an address such as x7k2q@disposable.example, and read the confirmation email. The address works long enough to pass a signup confirmation, and then nobody reads it again. Large providers spread their addresses across many domains, and they add domains as old ones get listed.
Throwaway inboxes have legitimate uses. People use them to download a white paper without joining a mailing list, or to test their own signup flows. The problem for an application is that the same property – an address with no lasting owner – is what makes it useful for abuse.
Why signup forms check for disposable email
Signup forms check for disposable email because an address that nobody owns removes the cost of creating another account. When email is the only identity you ask for, a disposable domain lets one person or one script create as many accounts as it wants.
That shows up in three ways:
- Free trial and credit abuse. A person creates a fresh account each time a trial or free-tier allowance runs out. For more information, see how to prevent free trial abuse.
- Fake accounts at scale. Scripts and AI agents register accounts for spam, referral fraud, review manipulation, or to stage later attacks. Okta Threat Intelligence reported in November 2026 that AI agents used in identity attacks favor disposable services whose APIs need no key. For more information, see AI agents and disposable email signups and fake account creation prevention.
- Lost communication. Password resets, billing notices, and security alerts go to an inbox that nobody reads, so a real customer who used one can't recover their account, and your email metrics drift.
Checking the domain at signup costs one lookup. It's one signal among several, alongside rate limits and bot detection, and it works best on the routes where a fresh account has value: registration, trial activation, and invitations.
Detection techniques compared
Each detection technique catches a different slice of disposable addresses, and the cheaper ones lag behind the providers. The following table orders them by cost.
| Technique | What it catches | What it misses | Cost to run |
|---|---|---|---|
| Domain list | Domains that someone has already reported | Domains registered after the last list update | An in-memory set lookup plus a scheduled list refresh |
| Registrable domain and subdomain matching | Random subdomains of a listed domain | Unlisted parent domains | A Public Suffix List lookup |
| Mail server (MX) matching | Domains that point at a known disposable provider's mail servers, whether or not a list names them yet | Providers whose mail servers you haven't identified, and domains on shared mail hosts | A DNS query per unseen domain, with a timeout and cache |
| Provider polling | The active domain of a provider that rotates domains, such as mail.tm | Providers without a public domain list | One scheduled request per provider |
The following sections cover each technique, then the cases that none of them catch.
Domain lists
A domain list is the starting point: a text file of known disposable domains that you load into a set and check each signup against. Several open-source projects maintain these lists on GitHub, and they differ in size, method, and how fast they change.
- disposable/disposable-email-domains is an aggregated list that is regenerated daily from several sources. It also publishes a strict variant that adds mainstream providers that let anyone sign up without verifying identity.
- 7c/fakefilter monitors known disposable providers and records when it first and last saw each domain. It removes domains after a year of inactivity.
- wesbos/burner-email-providers is a community list maintained through pull requests.
- disposable-email-domains/disposable-email-domains is a hand-curated list that asks contributors for a screenshot of the provider generating an address.
Lists lag for a structural reason. A provider can register a domain and start handing out addresses the same day, but a list only learns about it when a crawler or a person notices. Hand-curated lists add domains in batches when someone opens a pull request, so they trail automated ones by days or weeks.
Lists also contain false positives. A domain gets reported because someone saw it on a spam signup, and that doesn't mean it's a throwaway service. Public lists have included yandex.net, an infrastructure domain of the Russian webmail provider Yandex, and improvmx.com, an email forwarding service. If you deny a list wholesale, you deny those users too. Keep an exception list that you review, and record why each domain is on it.
Registrable domain and subdomain matching
Subdomain matching catches addresses at random subdomains of a listed domain, which an exact-match lookup misses. Some disposable services accept mail for any subdomain of their domain, so a8f3.disposable.example and zz91.disposable.example both work, and no list can enumerate them.
The fix is to reduce the address's domain to its registrable domain – the part that someone registers and controls – and check that too. The registrable domain is one label more than the public suffix. A public suffix is a domain under which anyone can register names, such as com, co.uk, or github.io. The Public Suffix List, maintained by Mozilla and volunteers, records them, including private suffixes such as hosting platforms.
The Public Suffix List matters here because the naive rule, "take the last two labels", is wrong for many domains. For mail.example.co.uk the last two labels are co.uk, a public suffix, and matching on it would deny every British business address. With the Public Suffix List, the registrable domain is example.co.uk.
Mail server (MX) matching
Mail server matching can flag a newly registered disposable domain without waiting for a list, because a domain's mail servers reveal which provider runs it. An MX (mail exchanger) record is a DNS record that names the servers that accept email for a domain. A disposable provider can register a hundred domains, but it points them all at the same few mail servers.
If you keep a set of mail server hostnames that belong to known disposable providers, you can look up the MX records of an unlisted domain and treat it as disposable when all of its mail servers are in that set. Requiring all of them, not any, avoids denying a domain that uses one disposable relay as a backup.
Arcjet analyzed the 230 domains that the FakeFilter feed first recorded in the 30 days to November 24, 2026. Of the 176 with MX records when Arcjet checked on November 24, 2026, 85 (48%) used only mail servers belonging to 13 disposable providers. A mail server check matches those domains without needing a list entry. The snapshot shows the mail servers on November 24, not on the day each domain appeared, so it doesn't measure how much sooner the check would have matched than a list.
MX matching has costs of its own. A DNS lookup adds latency, so bound it with a timeout and fall back to the list result when DNS is slow. Cache results per domain. Don't match on shared mail hosts, such as large webmail or business email platforms, because thousands of legitimate domains point there. The same lookup also tells you whether the domain publishes any mail servers, which is a separate check. A domain with no MX records is usually a typo or an unused domain, although the email standard lets a sender fall back to the domain's address record, so a missing MX isn't strict proof that mail can't arrive.
Provider polling for rotating providers
Provider polling handles services that publish their active domain and rotate it, which lists catch only after the fact. mail.tm is the clearest example. Its public API returns one receiving domain at a time, lets a script create an inbox without an API key, and moves to a different domain every few weeks.
A list built from domains that someone saw last month stops matching mail.tm signups when it rotates. Polling the provider's domain list on a schedule picks up each domain as it goes live. Keep old domains listed after a rotation, because inboxes created on the previous domain keep receiving mail.
Few providers expose their domains this way, so polling is a targeted addition to lists and MX matching, not a replacement. It's worth it for the providers that automated signups use most, because those are the ones with scriptable APIs.
What disposable email detection can't catch
Disposable email detection identifies throwaway services, not throwaway intent, so several common patterns pass every technique in this article.
- Private domains on their own mail servers. Anyone can register a domain for a few dollars and run a catch-all mail server on it. It appears on no list and its mail servers belong to no known provider.
- Catch-all forwarding services. Services such as ImprovMX, Cloudflare Email Routing, SimpleLogin, and Firefox Relay forward unlimited addresses at a custom domain or an alias domain to a real inbox. Many people use them for privacy, so denying them by default costs you real users.
- Real accounts used as throwaways. A Gmail or Outlook.com account takes a minute to create. It's a free webmail address, not a disposable one, and the domain tells you nothing about the person.
- Plus-addressing and dot variants.
user+trial2@gmail.comandu.ser@gmail.comdeliver to the same Gmail inbox asuser@gmail.com. That's a duplicate-account problem, not a disposable one. Normalize addresses before you check for an existing account, following each provider's rules.
For these cases, use signals that don't depend on the domain: rate limits on signup per IP address and device, bot detection, a confirmation email before the account gets value, and limits on what an unverified account can do. For more information about the difference between checking an address and proving that someone owns it, see email validation versus verification.
What to do when an address matches
When an address matches a disposable domain, choose a response that fits the value of the account: deny the signup, ask for more verification, or accept it and flag it for review.
- Deny. Return a generic validation error on the email field. This fits products where a free account has real value, such as compute credits or API quotas. Don't explain the exact rule in the response, because that tells an attacker what to change.
- Step-up verification. Create the account in a restricted state and require a further check, such as a confirmed phone number, a payment method, or a business address, before it unlocks the trial.
- Flag for review. Accept the signup and record the match. Use it to rate-limit the account, hold referral rewards, or feed a fraud review queue.
A false positive often costs more than a missed throwaway. A blocked real customer usually leaves without telling you, and you don't see the signup you lost. Start in a logging-only mode, look at what would have been denied, and check your exception list before you enforce. Expect to revisit it, because lists change daily.
If your product sells to businesses, you might also want to restrict free webmail providers, which is a different policy with a higher false-positive rate. For more information, see blocking free email providers on B2B signup.
A minimal list check in plain code
A list check without any service needs three parts: a domain list loaded into a set, normalization of the address's domain, and a walk up its parent domains that stops at the registrable domain. The following TypeScript example runs on Node.js and uses the domains.txt file from disposable/disposable-email-domains, downloaded on a schedule to data/disposable-domains.txt:
import { readFileSync } from "node:fs";import { domainToASCII } from "node:url";import { getDomain } from "tldts";
// Refresh this file on a schedule, for example with a daily job.const disposable = new Set( readFileSync("data/disposable-domains.txt", "utf8") .split("\n") .map((line) => line.trim().toLowerCase()) .filter((line) => line !== "" && !line.startsWith("#")),);
// Domains that you reviewed and decided to accept.const exceptions = new Set(["yandex.net", "improvmx.com"]);
export function isDisposable(email: string): boolean { const at = email.lastIndexOf("@"); if (at === -1) return false;
// Lowercase, convert internationalized domains to ASCII, and drop a // trailing dot so that every form of the domain compares equal. const domain = domainToASCII(email.slice(at + 1).trim()).replace(/\.$/, ""); if (domain === "") return false;
// The registrable domain, from the Public Suffix List including its // private section. A domain with no registrable part is a public suffix. const registrable = getDomain(domain, { allowPrivateDomains: true }); if (registrable === null) return false;
// Check the domain, then each parent down to the registrable domain, so // that random subdomains of a listed domain also match. Never check a // public suffix, which would match every domain registered under it. const labels = domain.split("."); for (let i = 0; i < labels.length; i++) { const candidate = labels.slice(i).join("."); if (exceptions.has(candidate)) return false; if (disposable.has(candidate)) return true; if (candidate === registrable) break; } return false;}The walk stops at the registrable domain because the public lists contain some public suffixes, such as dynamic DNS or regional suffixes. Without the stop, one such entry would mark every domain registered under that suffix as disposable. The tldts package bundles the Public Suffix List, and allowPrivateDomains includes its private section, which covers hosting platforms and dynamic DNS services. This check doesn't do MX matching, provider polling, or syntax validation, and it only knows what the list knew when you downloaded it.
Detect disposable email with Arcjet
Arcjet is a security SDK that you add to your application code. It runs checks such as bot detection, rate limiting, and email validation inside your request handlers. Its validateEmail rule classifies an address and lets you deny the types that you choose.
The following Next.js route handler uses @arcjet/next 1.15.0. It denies disposable addresses, addresses that fail syntax checks, and domains with no MX records:
import arcjet, { validateEmail } from "@arcjet/next";import { NextResponse } from "next/server";
const aj = arcjet({ key: process.env.ARCJET_KEY!, rules: [ validateEmail({ // Use "DRY_RUN" to log decisions without denying requests. mode: "LIVE", deny: ["DISPOSABLE", "INVALID", "NO_MX_RECORDS"], }), ],});
export async function POST(req: Request) { const { email } = await req.json(); const decision = await aj.protect(req, { email });
if (decision.isDenied() && decision.reason.isEmail()) { if (decision.reason.emailTypes.includes("DISPOSABLE")) { // Log the match for review. Keep the response generic. console.warn("Disposable email at signup"); } return NextResponse.json( { error: "Enter a different email address." }, { status: 400 }, ); }
if (decision.isDenied()) { return NextResponse.json({ error: "Forbidden" }, { status: 403 }); }
// Create the account. return NextResponse.json({ ok: true });}deny lists the email types to reject and allows everything else. allow does the reverse, and a rule takes one or the other. decision.reason.emailTypes lists the denied types that the address matched, so you can step up verification for DISPOSABLE and reject INVALID outright. If the MX lookup times out or fails, Arcjet treats the domain as having MX records, so a slow DNS server doesn't deny a real user. For the full option list, see the email validation reference.
On Arcjet's side, the disposable check combines the techniques in this article. It merges the disposable/disposable-email-domains, FakeFilter, and wesbos/burner-email-providers lists and refreshes them every hour. It matches subdomains through the Public Suffix List, polls mail.tm's domain list every 15 minutes, and treats a domain whose mail servers all belong to a known disposable provider as disposable. A reviewed exception list removes known false positives from the public lists, and unusually large additions from a feed wait for a person to approve them. It's subject to the same limits as any domain check: it can't identify a private domain on its own mail server or a real Gmail account created for one signup.
To combine email validation with bot detection and a signup rate limit in one rule, use protectSignup. For more information, see the signup form protection quick start and how to block disposable email in Next.js. For a comparison of hosted detection services, see disposable email detection APIs.
Frequently asked questions
Is a disposable email list enough on its own?
No. Lists only contain domains that someone has already reported, so they miss domains that providers registered since the last update. Add subdomain matching and a mail server check to catch unlisted domains.
How often should I update a disposable domain list?
At least daily. Disposable providers add several domains a day, and providers such as mail.tm rotate their active domain every few weeks, so a list copied once into your repository misses most recent domains.
Should I block Gmail or Outlook.com addresses?
Not as disposable email. They're free webmail providers with real, long-lived users. Restrict them only when your product sells to businesses and you accept the higher false-positive rate.
Are email forwarding and alias services disposable email?
They forward to a real inbox that someone reads, and many people use them for privacy. Treat them as a separate policy decision instead of denying them with disposable domains.
Does Arcjet detect disposable domains that aren't on any list?
Often. Arcjet's validateEmail rule treats a domain whose mail servers all belong to a known disposable provider as disposable, whether or not a list names it. It can't identify a private domain that runs its own mail server.
Do plus-addressed emails count as disposable?
No. An address such as user+trial2@gmail.com delivers to a real Gmail inbox. Normalize addresses before you look for duplicate accounts instead of treating them as disposable.
Application security in your code
Protect your application with Arcjet
Arcjet's email validation combines refreshed domain lists, mail-server matching, and provider polling in one check on your signup route.