Skip to content
Skills Library
Security · Building & coding

block-disposable-emails

/block-disposable-emails

Reject throwaway/disposable email addresses at signup by checking the domain against a maintained list, so spam accounts, trial-abuse, and fake signups drop sharply. Use this whenever the user is building or hardening a signup / registration / waitlist flow and mentions fake accounts, throwaway emails, mailinator / 10minutemail / temp-mail, trial abuse, bot signups, junk users, or wants to "improve signup quality" or "stop disposable emails." Reach for it when adding an auth/signup endpoint even if the user hasn't named disposable email yet — it's a cheap, high-leverage guard. Produces a serve

Repository
skills ↗
Licence
MIT
Last repository change
15.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
5
Deprecation

No signals detected. Repository changed on 15.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Reject throwaway/disposable email addresses at signup by checking the domain against a maintained list, so spam accounts, trial-abuse, and fake signups drop sharply. Use this whenever the user is building or hardening a signup / registration / waitlist flow and mentions fake accounts, throwaway emails, mailinator / 10minutemail / temp-mail, trial abuse, bot signups, junk users, or wants to "improve signup quality" or "stop disposable emails." Reach for it when adding an auth/signup endpoint even if the user hasn't named disposable email yet — it's a cheap, high-leverage guard. Produces a serve

Triggers from the description

improve signup qualitystop disposable emails.t named disposable email yet — it
Original author description

Reject throwaway/disposable email addresses at signup by checking the domain against a maintained list, so spam accounts, trial-abuse, and fake signups drop sharply. Use this whenever the user is building or hardening a signup / registration / waitlist flow and mentions fake accounts, throwaway emails, mailinator / 10minutemail / temp-mail, trial abuse, bot signups, junk users, or wants to "improve signup quality" or "stop disposable emails." Reach for it when adding an auth/signup endpoint even if the user hasn't named disposable email yet — it's a cheap, high-leverage guard. Produces a serve

How it works

  1. The check
  2. Rules that make it actually work
Original SKILL.md headings · 68 lines, 347 words
SKILL.md preview
---
name: block-disposable-emails
description: >-
  Reject throwaway/disposable email addresses at signup by checking the domain
  against a maintained list, so spam accounts, trial-abuse, and fake signups
  drop sharply. Use this whenever the user is building or hardening a signup /
  registration / waitlist flow and mentions fake accounts, throwaway emails,
  mailinator / 10minutemail / temp-mail, trial abuse, bot signups, junk users,
  or wants to "improve signup quality" or "stop disposable emails." Reach for it
  when adding an auth/signup endpoint even if the user hasn't named disposable
  email yet — it's a cheap, high-leverage guard. Produces a server-side check
  (works on Node, edge runtimes like Cloudflare Workers, etc.) and the rules for
  layering it with a CAPTCHA and email verification.
---

# Block disposable emails at signup

If anyone can sign up with any email, a chunk of your "users" will be throwaway
inboxes — `mailinator.com`, `10minutemail.com`, and hundreds more. They're how
people farm free trials, dodge bans, and pad the numbers with accounts that
never convert. Checking the signup domain against a community-maintained list of
disposable domains takes minutes and cuts a surprising amount of junk.

## The check

Use the continuously-updated
[`disposable/disposable-email-domains`](https://github.com/disposable/disposable-email-domains)
list (`domains.json`, tens of thousands of domains). Fetch it, cache for a day,
load into a `Set`, and membership-test the domain after the `@`. A `Set` lookup
is O(1); the daily cache means you're not hammering the CDN.

```ts
const LIST =
  "https://rawcdn.githack.com/disposable/disposable-email-domains/master/domains.json";

let cache: Set<string> | null = null;
let fetchedAt = 0;

async function disposableDomains() {
  if (cache && Date.now() - fetchedAt < 86_400_000) return cache; // 1 day
  const res = await fetch(LIST);
  cache = new Set<string>(await res.json());
  fetchedAt = Date.now();
  return cache;
}

export async function isDisposableEmail(email: string) {
  const domain = email.split("@")[1]?.toLowerCase().trim();
  if (!domain) return false;
  return (await disposableDomains()).has(domain);
}
```

Guard the signup handler:

```ts
if (await isDisposableEmail(email)) {
  return new Response("Please use a permanent email address.", { status: 422 });
}
```

## Rules that make it actually work

- **Server-side only.** The check belongs at the signup endpoint. A client-only
  check is trivially skipped — never trust it.
- **Cache correctly for the runtime.** On an edge runtime like Cloudflare
  Workers, module-scope memory may not persist between requests; back the cache
  with KV (or similar) so you're not refetching the list constantly.
- **Use the maintained list, not a hand-rolled regex.** A regex of domains you
  remember goes stale the day after you write it. The list doesn't.
- **Layer it — no single signal is enough.** Stack cheap independent filters:
  a CAPTCHA (Cloudflare Turnstile / hCaptcha) stops bots before submit, the
  disposable-domain block stops throwaway humans, and a verification email at
  the end still requires a real, owned inbox. Each is minutes of work; together
  they compound.

---

From [seangeng.com/writing/block-disposable-emails](https://seangeng.com/writing/block-disposable-emails).
Part of [github.com/seangeng/skills](https://github.com/seangeng/skills).
Credit: [@venelinkochev](https://x.com/venelinkochev/status/2042573164245336451).

Versions

The database has no other skills named block-disposable-emails.

Database snapshot: 13.11.2026 · package version 2cedf70fd9b1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100email-validator
    Validate and clean email lists. Use when: cleaning email lists before campaigns; validating signup emails; removing invalid addresses; checking for disposable emails; improving deliverability
  • 100signup
    When the user wants to optimize signup, registration, account creation, or trial activation flows. Also use when the user mentions "signup conversions," "registration friction," "signup form optimization," "free trial signup," "reduce signup dropoff," "account creation flow,"…
  • 100signup
    When the user wants to optimize signup, registration, account creation, or trial activation flows. Also use when the user mentions \"signup conversions,\" \"registration friction,\" \"signup form optimization,\" \"free trial signup,\" \"reduce signup dropoff,\" \"account…
  • 90signup
    When the user wants to optimize signup, registration, account creation, or trial activation flows. Also use when the user mentions \"signup conversions,\" \"registration friction,\" \"signup form optimization,\" \"free trial signup,\" \"reduce signup dropoff,\" \"account…
  • 90signup-flow-cro
    When the user wants to optimize signup, registration, account creation, or trial activation flows. Also use when the user mentions "signup conversions," "registration friction," "signup form optimization," "free trial signup," "reduce signup dropoff," or "account creation flow."…
  • 100signup
    Use this skill for optimizing signup, registration, account creation, and free trial flows. Triggers on: signup form optimization, registration form, account creation, free trial activation, signup conversion rate, signup abandonment, social login, multi-step signup, progressive…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.