Custom
Blocklist
Maintain a personal list of domains that should always be treated as disposable — regardless of what the global database says. Any email on a blocked domain is rejected instantly, with no MX lookup or database check required.
What It Does
The Custom Blocklist is a per-user list of registered domains. When you make an email verification request using your API key, the API checks your personal blocklist before performing any other work (MX lookups, database checks, pattern matching). If the email's domain matches any entry in your list, the API returns immediately with:
{
"success": true,
"data": {
"is_valid": true,
"is_disposable": true,
"is_public_email_provider": false,
"is_custom_blocklist": true,
"has_mx": false,
"domain": {
"subdomain": null,
"domain": "example",
"suffix": "com",
"registered_domain": "example.com",
"is_valid": true
},
"email": {
"normalized": "[email protected]",
"ascii_email": "[email protected]"
}
}
}The key signals are is_disposable: true and is_custom_blocklist: true. The is_custom_blocklist flag lets you distinguish between a globally-known disposable domain and one you blocked yourself, so you can customise your rejection message if needed.
Where to Find It
Navigate to Dashboard → Sidebar → Tools → Custom Blocklist. The page shows your full blocklist, lets you add new domains, edit notes inline, and remove entries.
Adding a Domain
Type a domain in the Add Domain form at the top of the page. You can provide either a registered domain or a subdomain — the backend normalises it to the registered domain automatically using tldextract:
| Input | Stored as | What it blocks |
|---|---|---|
| example.com | example.com | any email @example.com |
| mail.evil.com | evil.com | any email @evil.com or @*.evil.com |
| BADCO.IO | badco.io | lowercased automatically |
The Note field is optional (max 255 characters). Use it to record why a domain is blocked — e.g. “competitor domain”, “abuse report #1234”, “confirmed fraud”. Notes are private and never returned by the public API.
Validation Rules
- The domain must have a valid TLD and a registerable part — bare words like
localhostare rejected. - The same domain can only appear once per account — duplicate submissions return a clear error.
- Maximum 255 characters for domain and note.
Error Responses
{
"success": false,
"errors": {
"domain": ["This domain is already in your blocklist."]
}
}{
"success": false,
"errors": {
"domain": ["Enter a valid domain (e.g. example.com)."]
}
}Editing a Note
Click the note text (or the pencil icon that appears on hover) on any row to edit it inline. Press Enter or click the checkmark to save. Press Escape to cancel and restore the original value. Notes can be empty.
Only the note can be edited after adding. To change the domain itself, remove the entry and add the correct one — this ensures the cache is properly invalidated.
Removing a Domain
Hover over any row to reveal the trash icon on the right. Clicking it opens a confirmation dialog so you cannot remove entries by accident. Once confirmed, the domain is deleted and the API cache is invalidated within seconds.
How Changes Take Effect
Changes to your blocklist — adding, editing a note, or removing a domain — take effect within seconds. You do not need to restart anything or wait for a scheduled sync. The next API request after a change will already reflect the updated list.
Detecting Blocklist Hits in Your Code
Check for is_custom_blocklist: true in the API response to distinguish your personal blocks from globally-known disposable domains:
import requests
def verify_email(email: str, api_key: str) -> dict:
response = requests.get(
"https://signupguard.io/api/v1/disposable/check/",
params={"email": email},
headers={"X-sg-apikey": api_key},
)
data = response.json()["data"]
if data.get("is_custom_blocklist"):
# Blocked by your personal list — you may want a custom message
return {"allowed": False, "reason": "custom_block"}
if data.get("is_disposable"):
# Blocked by global disposable database
return {"allowed": False, "reason": "disposable"}
if data.get("is_public_email_provider"):
# Consumer email — your call whether to accept
return {"allowed": True, "reason": "public"}
return {"allowed": True, "reason": "clean"}async function verifyEmail(email, apiKey) {
const res = await fetch(
`https://signupguard.io/api/v1/disposable/check/?email=${encodeURIComponent(email)}`,
{ headers: { "X-sg-apikey": apiKey } }
);
const { data } = await res.json();
if (data.is_custom_blocklist) {
return { allowed: false, reason: "custom_block" };
}
if (data.is_disposable) {
return { allowed: false, reason: "disposable" };
}
return { allowed: !data.is_public_email_provider, reason: data.is_public_email_provider ? "public" : "clean" };
}Use Cases
Block competitor domains
Prevent employees or bots from signing up with competitor email addresses. Since these are legitimate domains that won't appear in the global disposable database, the custom blocklist is the right tool.
Block domains from known bad actors
If you identify a domain that's being used for abuse or fraud in your product, add it to your blocklist immediately. It takes effect within seconds without waiting for the global database to update.
Block internal or test domains
Prevent internal team domains or testing domains (e.g. acme-test.com) from being registered in your production product.
Policy-based restrictions
Some industries require blocking free consumer email providers beyond Gmail/Yahoo — e.g. blocking all addresses from known reseller domains. Manage this list centrally here rather than in each integration.
Limits & Notes
- Per-account list. Your blocklist applies only to requests made with your API key. Other accounts are unaffected.
- Registered domain matching only. You block the registered domain — not a specific subdomain.
mail.example.comandsignup.example.comare both blocked whenexample.comis in your list. - Notes are private. Notes are stored server-side and never returned in API responses. They are only visible in your dashboard.
- No rate limit on management endpoints. The add/remove/update endpoints use session authentication (dashboard login) and are not subject to the 60 req/min API rate limit.
- Changes are instant. Adding or removing a domain takes effect within seconds — no manual action required.