DEV Community

GoDedi
GoDedi

Posted on

Stop Fake Signups & Trial Abuse: Bulk Email Verification + Live RDAP Domain Age in Node.js & Python

Stop Fake Signups & Trial Abuse: Bulk Email Verification + Live RDAP Domain Age in Node.js & Python

If you run a SaaS, API platform, or e-commerce checkout with a free tier, you already know the pain: bots and bad actors spinning up hundreds of burner accounts to drain your AI credits, abuse free trials, or tank your email sender reputation with hard bounces.

Most developers start with a simple regex check (/^[^\s@]+@[^\s@]+\.[^\s@]+$/) and maybe a static open-source list of disposable email domains.

Here is why that breaks down in production:

  1. Regex only checks punctuation. bot99@mailinator.com and user@gmial.com both pass regex effortlessly.
  2. Static blocklists are always behind. Fraudsters regularly buy cheap domains for $1, spin up an inbox, abuse your signup flow for 48 hours, and disappear before any public blocklist ever hears about them.
  3. Hard bounces hurt your real users. Sending onboarding emails to typo domains (gmial.com, yaho.com) or domains with dead MX records pushes your legitimate transactional emails straight into spam folders.

To actually stop modern signup abuse without adding friction for genuine users, you need four live signals evaluated together—and you need to be able to run them in bulk without burning your budget.


The 4 Signals That Actually Catch Modern Fraud

Instead of relying on a simple "valid / invalid" boolean, a resilient signup and lead-cleaning pipeline checks:

  1. Disposable & Burner Detection: Immediately flags temporary inbox providers (mailinator.com, throwaway relays, etc.).
  2. Live DNS Security Audits (MX, SPF, DMARC): Confirms the domain can actually receive mail right now and checks whether it has proper authentication records configured.
  3. Live RDAP Domain Age (The Missing Piece): Queries real-time Registration Data Access Protocol (RDAP) records to see when the domain was created. A brand-new domain registered 2 days ago trying to sign up for 15 free trials is a massive red flag that static disposable lists completely miss.
  4. Smart Typo Detection (did_you_mean): Catches honest mistakes from real buyers (name@gmial.com -> name@gmail.com) so you can prompt them to fix it instead of silently losing a customer.

Why Single-Request Verifiers Become Expensive Fast

Traditional email verification APIs force you to check one address per HTTP call. That works fine at 50 signups a month, but the moment you need to clean a CRM export, audit a waitlist, or screen webhook batches, single-request APIs become slow and surprisingly expensive.

That is where Bulk Email Verifier & RDAP Domain Risk API stands out:

  • Single & Bulk Endpoints: Real-time single verification (POST /v1/check) for signup forms, plus a dedicated batch endpoint (POST /v1/batch) that verifies up to 25 emails or raw domains in a single POST call.
  • Live RDAP + DNS + Typo + Disposable in one payload: Every target returns an actionable 0–100 risk score with a clear allow, challenge, or block recommendation.
  • Built for developer budgets: You can start immediately on the Free Basic plan (100 requests/month) with no credit card required, and the Pro plan ($4.99/month) includes 15,000 requests/month. Because each batch call handles up to 25 targets, that scales up to 375,000 email or domain checks per month for under $5.

Step 1: Real-Time Signup Guard in Node.js (POST /v1/check)

Use the single-check endpoint inside your registration route to block disposable accounts, catch typos before creating a user record, and flag newly registered RDAP domains.

async function screenSignupEmail(email) {
  const response = await fetch(
    "[https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/check](https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/check)",
    {
      method: "POST",
      headers: {
        "content-type": "application/json",
        "x-rapidapi-key": process.env.RAPIDAPI_KEY,
        "x-rapidapi-host":
          "bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com",
      },
      body: JSON.stringify({
        email,
        include_rdap: true,
      }),
    }
  );

  if (!response.ok) {
    throw new Error(`Verification API error: ${response.status}`);
  }

  const data = await response.json();
  return data;
}

// Example usage inside your signup controller
async function handleSignup(req, res) {
  const { email } = req.body;
  const check = await screenSignupEmail(email);

  // 1. Recover real users who made a typo
  if (check.did_you_mean) {
    return res.status(400).json({
      error: `Did you mean ${check.did_you_mean}? Please double-check your email.`,
    });
  }

  // 2. Enforce risk-based policy
  if (check.recommended_action === "block") {
    return res.status(403).json({
      error: "Please use a valid, non-disposable email address to register.",
    });
  }

  if (check.recommended_action === "challenge") {
    // e.g., Newly registered RDAP domain -> trigger CAPTCHA or email OTP
    return res.status(200).json({ requireVerificationStep: true });
  }

  // 3. Safe -> proceed with frictionless onboarding
  return res.status(201).json({ status: "account_created" });
}
Enter fullscreen mode Exit fullscreen mode

Step 2: Bulk Audit Leads, Waitlists, or Domains (POST /v1/batch)

When cleaning an existing user table, filtering newsletter signups, or screening suspicious domains from checkout logs, send up to 25 emails or raw domains per request.

Node.js (Fetch)

const response = await fetch(
  "[https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/batch](https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/batch)",
  {
    method: "POST",
    headers: {
      "content-type": "application/json",
      "x-rapidapi-key": process.env.RAPIDAPI_KEY,
      "x-rapidapi-host":
        "bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com",
    },
    body: JSON.stringify({
      targets: [
        "support@stripe.com",
        "bot99@mailinator.com",
        "user+promo@gmial.com",
        "cloudflare.com",
      ],
      include_rdap: true,
    }),
  }
);

const data = await response.json();

for (const item of data.results) {
  console.log(
    item.input,
    ":",
    item.verdict,
    "| Score:",
    item.risk_score,
    "| Action:",
    item.recommended_action
  );
}
Enter fullscreen mode Exit fullscreen mode

Python (Requests)

import os
import requests

url = "[https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/batch](https://bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com/v1/batch)"

payload = {
    "targets": [
        "support@stripe.com",
        "bot99@mailinator.com",
        "user+promo@gmial.com",
        "cloudflare.com",
    ],
    "include_rdap": True,
}

headers = {
    "content-type": "application/json",
    "x-rapidapi-key": os.environ["RAPIDAPI_KEY"],
    "x-rapidapi-host": "bulk-email-verifier-rdap-domain-risk-api.p.rapidapi.com",
}

res = requests.post(url, json=payload, headers=headers, timeout=15)
res.raise_for_status()

for item in res.json().get("results", []):
    if item["recommended_action"] == "block":
        print(f"Blocked {item['input']} (score: {item['risk_score']})")
    elif item["recommended_action"] == "challenge":
        print(f"Flagged for review: {item['input']} (score: {item['risk_score']})")
    else:
        print(f"Verified safe: {item['input']} (score: {item['risk_score']})")
Enter fullscreen mode Exit fullscreen mode

Recommended Production Policy (0–100 Risk Score)

Rather than hard-blocking every edge case, map the returned risk score directly to your onboarding flow:

Risk Score Verdict Recommended Action Best Handling Strategy
0–25 safe allow Let the user sign up immediately with zero friction.
26–69 suspicious challenge Require email OTP, CAPTCHA, or phone verification (catches brand-new RDAP domains and missing SPF/DMARC).
70–100 high_risk block Reject automatically (disposable/burner domains, dead MX records, or invalid syntax).

Test It Live in 30 Seconds (Free Tier Included)

You don't even have to write code first to verify how it scores your own test emails or domains.

  1. Open the Bulk Email Verifier & RDAP Domain Risk API on RapidAPI.
  2. Subscribe to the Basic Plan ($0.00/mo — 100 requests/month) to grab your API key.
  3. Click Run directly inside the RapidAPI Playground on POST /v1/batch or POST /v1/check to inspect the live RDAP domain age, MX/SPF/DMARC records, and risk scoring JSON in real time.

If you're scaling a production app or cleaning large databases, upgrading to the Pro ($4.99/mo for 15,000 calls), Ultra ($19.99/mo for 75,000 calls), or Mega ($49.99/mo for 250,000 calls) tier gives you bulk throughput at a fraction of legacy email verification pricing.

Try Bulk Email Verifier & RDAP Domain Risk API Free on RapidAPI ->

Top comments (0)