Blog
How to prevent fake signups with phone, email and IP checks together
Stop fake signups by checking email, phone and IP together at submit time, scoring the signals, and adding friction instead of blocking real users.
Updated 2026-11-23
To prevent fake signups, check every new account's email address, phone number and IP address together when the form is submitted, then respond in proportion: correct typos, refuse what is impossible or disposable where an account is worth something, and ask for an extra confirmation when several weak signals add up. No single check stops a determined attacker. The goal is to make each fake account cost more than it earns, while real users barely notice.
What fake signups are after
Defenses work better when they target the reason accounts are being faked. Most fall into a few patterns:
| Pattern | What the attacker gets | What helps most |
|---|---|---|
| Repeated free trials | Your product for free, over and over | One trial per confirmed phone number or payment method; disposable email flag |
| Promo and referral abuse | Signup bonuses, referral credits, coupons | Rewards held until the account is confirmed and active |
| Spam and scams | Accounts that message your users or post content | Email confirmation before messaging; IP and velocity limits |
| SMS pumping | Revenue from SMS you pay for | Phone validation and line type before any code is sent; rate limits |
| Scraping and automation | Access to data behind a login | Data center flags, rate limits per network, challenges |
| Fake reviews or votes | Influence over rankings | Verified phone per account; review of clusters by network |
Pick the two or three patterns that cost you most. They decide where friction belongs.
What each check catches
| Check | Catches | Misses |
|---|---|---|
| Email syntax, DNS and MX | Typos, invented domains, domains that cannot receive mail | Well-formed addresses on real domains |
| Email mailbox check (SMTP) | Invented names on real domains | Catch-all domains and providers that hide mailbox status |
| Disposable email flag | Temporary inbox services on the list | New throwaway domains, private domains |
| Phone validation | Impossible numbers, missing country codes | Valid numbers that belong to someone else |
| Phone line type | Premium-rate and other numbers no person should sign up with | VoIP numbers handed out from ordinary ranges |
| IP flags and risk | Tor exits, known VPNs and proxies, data center traffic | Residential proxies |
| Your own velocity limits | Bursts from one address, network, device or domain | Slow, distributed attacks |
| Confirmation email or code | Anyone who does not control the inbox or phone | Attackers who do control throwaway inboxes or numbers |
Read the table by column. Each check misses something another one catches. That is why they belong together.
Run all three checks in one call
A batch request runs the email, phone and IP checks in parallel, in one round trip:
curl https://api.qelka.com/v1/batch \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{ "type": "email", "email": "jane@example.com", "mode": "fast" },
{ "type": "phone", "phone": "07400 123456", "country": "GB" },
{ "type": "ip", "ip": "8.8.8.8" }
]
}'
data[0] answers the email, data[1] the phone and data[2] the IP, always in the order of items. An item that fails, such as a private IP address during local development, comes back as an error object in its place and is not billed; the rest of the batch still runs. The whole call costs 1 + 1 + 1 credits.
fast mode skips the SMTP mailbox check, so the form never waits for a slow mail server, and still catches typos, dead domains and disposable inboxes. If you want the mailbox answer too, drop "mode": "fast" and give the call a longer timeout.
Turn signals into a decision
Some signals settle a field on their own: an undeliverable email or an invalid phone number is a correction to ask for, not a score. The rest are weak alone and strong together. A simple point system makes that explicit:
| Signal | Points |
|---|---|
checks.disposable is true |
3 |
flags.tor is true |
3 |
risk.level is high |
3 |
risk.level is medium |
1 |
line_type is voip |
1 |
| More signups from this IP in the last hour than your normal maximum | 2 |
| Total | Response |
|---|---|
| 0 or 1 | Accept |
| 2 or 3 | Accept, but hold trial credits or rewards until the email or phone is confirmed |
| 4 or more | Confirm the email or phone before the account becomes active, or send it to review |
These weights are a starting point, not a measured model. Tune them on your own traffic, as described below. Note what is not on the list: a free email provider, a role address or a foreign IP country. Penalizing those mostly hurts real users.
In JavaScript, the whole flow, failing open when the API is unavailable:
const API = 'https://api.qelka.com/v1'
export async function screenSignup({ email, phone, country, ip, recentSignupsFromIp, normalMax }) {
const items = [{ type: 'email', email, mode: 'fast' }]
if (phone) items.push(country ? { type: 'phone', phone, country } : { type: 'phone', phone })
if (ip) items.push({ type: 'ip', ip })
let data
try {
const response = await fetch(`${API}/batch`, {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ items }),
signal: AbortSignal.timeout(5000),
})
if (!response.ok) return { verdict: 'accept', checked: false, errors: [] }
data = (await response.json()).data
} catch {
return { verdict: 'accept', checked: false, errors: [] }
}
const byType = Object.fromEntries(items.map((item, index) => [item.type, data[index]]))
const errors = []
let points = 0
const mail = byType.email
if (mail.object === 'email') {
if (mail.status === 'undeliverable') errors.push({ field: 'email', suggestion: mail.did_you_mean })
if (mail.checks.disposable) points += 3
}
const tel = byType.phone
if (tel?.object === 'phone') {
if (tel.status === 'unknown') errors.push({ field: 'phone', problem: 'missing_country' })
else if (!tel.valid) errors.push({ field: 'phone', problem: 'invalid' })
else if (['premium_rate', 'shared_cost'].includes(tel.line_type)) errors.push({ field: 'phone', problem: 'not_personal' })
else if (tel.line_type === 'voip') points += 1
}
const net = byType.ip
if (net?.object === 'ip') {
if (net.flags.tor) points += 3
if (net.risk.level === 'high') points += 3
if (net.risk.level === 'medium') points += 1
}
if (recentSignupsFromIp > normalMax) points += 2
if (errors.length > 0) return { verdict: 'correct', checked: true, errors }
if (points >= 4) return { verdict: 'verify_before_active', checked: true, points, errors }
if (points >= 2) return { verdict: 'hold_rewards', checked: true, points, errors }
return { verdict: 'accept', checked: true, points, errors, e164: tel?.e164 ?? null }
}
recentSignupsFromIp and normalMax come from your own counters. Store the verdict, the points and the raw flags with the account: they are what you will want when you look back at abuse.
What to do with the verdict
| Verdict | What the user sees | What your system does |
|---|---|---|
correct |
The field to fix, with the typo suggestion when there is one | Nothing is created yet |
accept |
The normal flow | Account created, confirmation email sent as usual |
hold_rewards |
The normal flow | Account created; trial credits, coupons or referral rewards unlock after confirmation |
verify_before_active |
A step to confirm the email or phone | Account created inactive, or queued for review |
| Unchecked (API unavailable) | The normal flow | Account created and marked for a check later |
The best defense is often the third row. The account opens at once, so real users never wait, but nothing of value leaves until the person proves control of an inbox or a phone.
Normalize before you count
Counting accounts per email or per phone only works if one person cannot write the same identifier ten ways.
- Phone numbers: store the E.164 form that the phone check returns in
e164.(415) 555-0123and+1 415 555 0123are then one number. - Email domains: lowercase them. Domain names are not case-sensitive.
- Subaddresses:
jane+1@example.comandjane+2@example.comreach one inbox under RFC 5233 subaddressing, at providers that support it. - Gmail dots: Google documents that dots in the local part of a gmail.com address do not change where the mail goes.
Use those rules to build a duplicate key, never to rewrite the address you store or send to:
export function duplicateKey(email) {
const at = email.lastIndexOf('@')
const domain = email.slice(at + 1).toLowerCase()
let local = email.slice(0, at).toLowerCase()
const plus = local.indexOf('+')
if (plus > 0) local = local.slice(0, plus)
if (domain === 'gmail.com') local = local.replaceAll('.', '')
return `${local}@${domain}`
}
Rate limits and velocity
Data checks look at one signup. Velocity looks at many. Keep counters for the last hour and the last day, per IP address, per network (the ASN from the IP result), per email domain, per duplicate key and per phone number. A burst on any of them is a signal no single lookup can produce. Count IPv6 traffic per prefix rather than per address, since one user can rotate through many addresses inside the same prefix.
No special infrastructure is needed. A key-value store with expiring keys does the job: increment a counter named after the identifier and the window, set it to expire when the window ends, and read it before you screen the signup. Compare against your normal maximum, measured on ordinary days, rather than a number picked in advance.
Protect the SMS step
If signup sends a code by SMS, that step is a target of its own. Before sending any code: validate the number, refuse premium-rate, shared-cost and unknown line types, send only to the countries you serve, and limit codes per number and per IP address per hour. The phone check that guards your form is the same one that guards your SMS bill. Phone number validation explains the line types.
Mistakes that help attackers or hurt users
- Failing closed. If the validation call fails and nobody can sign up, an outage becomes a business problem. Fail open and check later.
- Explaining your rules. "Disposable emails are not allowed from this domain list" teaches the workaround. Say what to do instead: use a permanent address, confirm your phone.
- Blocking on one weak signal. A VPN, a VoIP number or a foreign IP alone describes many real customers.
- Ignoring the typo suggestion.
did_you_meanturns a lost signup into a corrected one. - Forgetting the other doors. Email changes, team invitations and guest checkout need the same checks as signup.
Measure before you enforce
Run the scoring in shadow mode for a few weeks: compute the verdict, store it, change nothing. Then compare verdicts with what accounts did later: paid, churned, banned. You will see how many real users each rule would have slowed down, and you can set thresholds from your own data rather than from guesses. Revisit them when attacks change.
Where to go next
Validate signup forms has a complete Express route and a Python version, and the batch reference documents error items and timing. The free disposable email checker and VPN and proxy detection tools let you try single values by hand. With a test key, disposable@example.com and the Tor test address 198.51.100.200 exercise every branch of the code above without spending credits; see test mode. For each signal in depth, read disposable email detection and VPN detection.
Frequently asked questions
How do I stop fake signups?
Do CAPTCHAs stop fake accounts?
Should I require a phone number at signup?
How do I detect fake email addresses at signup?
What is SMS pumping?
Will blocking VPNs stop fake signups?
How much does it cost to check each signup?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.