How to Block Disposable Emails & Fake SaaS Signups in 10 Lines of Code
If you run a SaaS product with a free trial or freemium tier, you've probably seen users signing up with 10minutemail.com or newly registered throwaway domains to abuse free credits. Instead of maintaining fragile regex
If you run a SaaS product with a free trial or freemium tier, you've probably seen users signing up with 10minutemail.com or newly registered throwaway domains to abuse free credits.
Instead of maintaining fragile regex rules and static blocklists manually, I built a lightweight Signup Fraud & Domain Risk Intelligence API that evaluates any email address in real time and returns an immediate ALLOW, REVIEW, or BLOCK decision.
🔗 Try it free on RapidAPI: Signup Fraud & Domain Risk Intelligence
💻 GitHub SDK & Code Examples: homewy2021/signup-fraud-risk-api
What It Checks in One Call:
-
Disposable & Burner Domains: Automatically synced daily with 5,000+ temporary email providers (
10minutemail,tempmail,guerrillamail, etc.). -
Domain Age (RDAP): Flags newly registered domains (
<30 daysold) commonly used in trial abuse and spam campaigns. -
Live DNS & Email Security Audit: Verifies active MX records, SPF (
v=spf1), and DMARC (v=dmarc1) policies. -
Typo & Role Detection: Catches common typos (
gmial.com->gmail.com) and shared inboxes (admin@,support@,info@).
Quick Integration (Node.js / JavaScript)
const email = "[email protected]";
const url = `[https://signup-fraud-domain-risk-intelligence.p.rapidapi.com/risk-check?email=$](https://signup-fraud-domain-risk-intelligence.p.rapidapi.com/risk-check?email=$){encodeURIComponent(email)}`;
const response = await fetch(url, {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "signup-fraud-domain-risk-intelligence.p.rapidapi.com"
}
});
const result = await response.json();
if (result.decision === "BLOCK") {
throw new Error("Please use a valid permanent email address.");
}
Example JSON Response
{
"email": "[email protected]",
"decision": "BLOCK",
"risk_score": 100,
"risk_level": "HIGH",
"reasons": [
"Disposable or temporary email provider detected",
"Domain has no valid MX records to receive email"
]
}
You can test all endpoints (/risk-check, /domain-health, and /bulk-risk-check) right in your browser with the free tier:
👉 Signup Fraud & Domain Risk Intelligence on RapidAPI
What other signals do you check to stop fake signups in your apps? Let me know in the comments!
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.