Free trial abuse prevention: scoring sign-ups with IP, email, card and device signals
By Muntaha Shaheen · · 8 min read
Free trial abuse prevention works by scoring each sign-up on several signals at once and mapping the total to a tier. Useful signals are the IP verdict from a service such as iplogs.com, a normalized email, the card fingerprint, a device or session identifier and disposable email domains. Each signal misfires on some real customers, so none should refuse a sign-up alone. Give strong linking signals, such as the same email or the same card on an earlier trial, more points than circumstantial ones such as a prepaid card or a country mismatch. Then map the total to four tiers: allow, verify, restrict, or block for review. Give relay addresses, which many ordinary users share, no IP points. Pass the real client address, not the first X-Forwarded-For value. Prefer friction a real user can pass, like email confirmation or a card on file, because blocking on the IP alone turns away real customers on VPNs and shared networks. Stripe Radar adds its own trial abuse controls.
Total points to tier
0 to 2 points
Allow: the normal trial.
3 to 4 points
Verify: confirm the email first, or add a card.
5 to 6 points
Restrict: lower limits and no costly features.
7 or more
Block or review: a message with a support contact and no automatic trial.
A free trial is a bet that people who try the product will pay for it. Trial abuse breaks the bet: the same person, or the same script, signs up again and again to restart the clock or to use up free credits, compute or API calls. No single check stops that without also stopping customers, so this article combines a few cheap signals into a score and adds friction only as the evidence builds.
What is free trial abuse?
It is signing up repeatedly to get a product's paid value without paying. Stripe describes the common patterns as prepaid or virtual cards and the same card used across many accounts. When the sign-ups are scripted, OWASP classifies it as automated threat OAT-019, Account Creation: "create multiple accounts for subsequent misuse", cross-referenced to CWE-837, improper enforcement of a single, unique action.
Two groups do it, and they need different defences. Individuals repeat a trial by hand with a new email, often through a VPN. Operators script hundreds of accounts to farm credits, send spam or resell access. Rate limits and IP checks catch most of the second group; the first group is caught by linking new accounts to old ones through email, card and device.
Which signals catch repeat trial sign-ups?
The useful ones link a new account to an old one or show that the sign-up came from infrastructure, not a person. Stripe's guide to trial abuse names the same families: sign-up velocity from shared infrastructure, device fingerprint reuse and payment signals such as prepaid cards, card country that doesn't match the IP location, and quick reuse of one card.
| Signal | What it catches | Where it misfires |
|---|---|---|
| IP verdict | VPN servers, Tor exits, open proxies, residential-proxy exits already observed, datacenter and cloud networks | A residential-proxy exit nobody has seen yet looks like a home line; privacy-minded customers use VPNs too |
| Sign-ups per IP | Scripts and repeaters on one connection | CGNAT, offices, universities and iCloud Private Relay put many people on one address |
| Normalised email | The same inbox with dots or +tags added | Only safe for providers whose rules you have confirmed |
| Disposable email domain | Throwaway inboxes | Lists go stale; some privacy users rely on forwarding services |
| Card fingerprint | The same card on a new account | Families and small companies share a card |
| Prepaid card | Cards bought to burn | Some real customers prefer prepaid |
| Device or session ID | The same browser on a new account | Cleared storage resets it; shared computers |
| Usage in the trial | Accounts that drain credits on day one | Enthusiastic real users |
Each signal misfires on somebody, so none of them should refuse a sign-up by itself.
How do I use the IP verdict without blocking real users?
Map the verdict to points, not to a decision. The iplogs POST https://iplogs.com/v1/check endpoint returns a score from 0 to 1 and a verdict with four levels: clean below 0.30, suspicious below 0.60, vpn_likely below 0.85 and vpn_detected at 0.85 or more, plus is_proxy, is_relay and an ip_info object with the country and network. Those levels map well to points: 0, 1, 2 and 3, and an is_proxy answer counts like vpn_detected.
Two adjustments stop the IP signal from punishing ordinary users. is_relay is true for iCloud Private Relay, Cloudflare WARP and corporate web gateways, whose addresses are shared by many ordinary users (Apple also verifies the device and subscription behind each Private Relay connection), so give relays no IP points (see iCloud Private Relay). And count sign-ups per IP only for addresses that aren't shared; for IPv6, count per /64, because one customer can hold a whole /64.
Pass the real client address. If the app sits behind a proxy or CDN and reads the first X-Forwarded-For value, a repeat abuser can type any address into that header and score as a clean home connection. The X-Forwarded-For spoofing guide covers the fix.
How do I normalise email addresses for duplicate checks?
Lowercase the address and apply only the aliasing rules a provider documents. Google documents two for Gmail: dots in the username don't matter (john.smith@gmail.com and johnsmith@gmail.com are one inbox), and adding a plus sign and any word before the @ still delivers to the same inbox. Google also notes that on Workspace domains dots do change the address, so apply the dot rule only to personal Gmail addresses, which Google says end in gmail.com or googlemail.com.
// For duplicate checks only. Keep the address the user typed for sending mail.
export function normalizeEmail(email) {
const [local, domain] = email.trim().toLowerCase().split(/@(?=[^@]+$)/);
if (domain === "gmail.com" || domain === "googlemail.com") return `${local.split("+")[0].replaceAll(".", "")}@${domain}`;
return `${local}@${domain}`;
}
// normalizeEmail(" J.Smith+trial2@Gmail.com ") -> "jsmith@gmail.com"Store the normalised form next to each trial and look it up at sign-up. Add other providers only after you've confirmed their rules; a plus sign is a normal character in some mail systems, and stripping it there would merge two different people.
How should I score trial sign-ups?
Add points per signal and map the total to a tier. The weights below are a starting point, not measured values. Strong linking signals (same email, same card) weigh more than circumstantial ones (prepaid card, country mismatch).
| Signal | Points |
|---|---|
IP verdict suspicious / vpn_likely / vpn_detected | 1 / 2 / 3 |
is_proxy (not a relay) | 3 |
Relay address (is_relay: iCloud Private Relay, WARP, corporate gateway) | 0 |
| Normalised email already had a trial | 4 |
| Disposable email domain | 2 |
| Card fingerprint already on another trial | 4 |
| Prepaid card | 1 |
| Card country differs from IP country (IP not a VPN) | 1 |
| Device ID already on another trial | 3 |
| Total | Tier | What the user sees |
|---|---|---|
| 0 to 2 | Allow | The normal trial |
| 3 to 4 | Verify | Confirm email first, or add a card |
| 5 to 6 | Restrict | A trial with lower limits and no costly features |
| 7 or more | Block or review | A message with a support contact; no automatic trial |
Card fingerprints come from your payment provider. In Stripe, a card PaymentMethod carries card.fingerprint, which Stripe documents as uniquely identifying the card number so you can check whether two customers use the same card. The same object has card.funding (credit, debit, prepaid or unknown) and card.country.
Here is the scorer in Node.js 18 or later. The IP lookup has an 8-second timeout (a first full check takes about 3 seconds, the slowest up to 8), backs off on HTTP 429 using Retry-After, caches full answers for 15 minutes and fails open: if the API can't answer, the sign-up is scored on its other signals. The db lookups are queries against your own tables.
const cache = new Map(); // ip -> { at, check }
const TTL_MS = 15 * 60 * 1000;
let pausedUntil = 0;
async function checkIp(ip) {
const hit = cache.get(ip);
if (hit && Date.now() - hit.at < TTL_MS) return hit.check;
if (Date.now() < pausedUntil) return null;
try {
const res = await fetch("https://iplogs.com/v1/check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ ip }),
signal: AbortSignal.timeout(8000),
});
if (res.status === 429) {
pausedUntil = Date.now() + (Number(res.headers.get("retry-after")) || 60) * 1000;
return null;
}
if (!res.ok) return null;
const check = await res.json();
if (!check || typeof check !== "object" || Array.isArray(check)) return null;
// Over the daily quota the API answers in fast mode; don't keep that thinner answer.
if (check.mode !== "fast") {
if (cache.size > 50_000) cache.clear(); // crude cap; use an LRU if you need one
cache.set(ip, { at: Date.now(), check });
}
return check;
} catch {
return null; // timeout or network error: fail open
}
}
const IP_POINTS = { clean: 0, suspicious: 1, vpn_likely: 2, vpn_detected: 3 };
// s: { ip, email, cardFingerprint?, cardFunding?, cardCountry?, deviceId? }, email already validated
export async function scoreTrialSignup(s, db) {
let points = 0;
const reasons = [];
const add = (n, why) => { points += n; reasons.push(why); };
const check = await checkIp(s.ip);
const info = check?.ip_info ?? {};
if (check && !check.is_relay) {
const p = Math.max(IP_POINTS[check.verdict] ?? 0, check.is_proxy ? 3 : 0);
if (p) add(p, check.is_proxy ? "ip is a proxy" : `ip verdict ${check.verdict}`);
}
if (await db.trialForEmail(normalizeEmail(s.email))) add(4, "email already had a trial");
if (await db.isDisposable(s.email.split("@").pop().toLowerCase())) add(2, "disposable email domain");
if (s.cardFingerprint && (await db.trialForCard(s.cardFingerprint))) add(4, "card used on another trial");
if (s.cardFunding === "prepaid") add(1, "prepaid card");
if (s.cardCountry && info.country_code && !check.is_vpn && !check.is_relay && s.cardCountry !== info.country_code)
add(1, "card and IP countries differ");
if (s.deviceId && (await db.trialForDevice(s.deviceId))) add(3, "device seen on another trial");
const tier = points >= 7 ? "block" : points >= 5 ? "restrict" : points >= 3 ? "verify" : "allow";
return { points, tier, reasons };
}Save points, tier and reasons with the account. They explain each decision to support staff, and they are the data you will tune the weights with.
The free iplogs API allows 60 requests a minute and 2,000 full checks a day per calling IP, then answers in fast mode. The cache keeps a sign-up form well inside that. If you call it on every page view, send "mode": "fast" in the body for an in-memory answer in microseconds. Fast mode still catches listed VPN servers, proxies and Tor exits, but runs no live probes, so it misses more unlisted VPN servers; keep the full check for the sign-up itself.
What does Stripe offer for trial abuse?
If you run trials through Stripe, use what it already has before building more. Radar has a free trial abuse control that blocks high-risk trial starts before they become subscriptions; Stripe recommends Checkout Sessions in subscription mode, where trial starts are detected without code changes. On Radar plans that include custom rules (Plus and Pro at the time of writing, not Standard), your own rules can use attributes such as :is_anonymous_ip:, :is_disposable_email:, :card_funding: and :total_customers_for_card_weekly:, and any metadata you attach to payments with the ::key:: syntax:
Review if ::ip_verdict:: = 'vpn_detected' and :card_funding: = 'prepaid'
Block if :total_customers_for_card_weekly: > 3Radar only sees what goes through Stripe. Trials that start without a card, and abuse that never reaches checkout, still need checks at sign-up. When a trial does end without a payment method, Stripe's trial_settings.end_behavior.missing_payment_method decides what happens next: create an invoice (the default), cancel, or pause.
How strict should free trial rules be?
Strict enough that abuse costs more than it gains, and no stricter. Every rule has two costs: the abuse it lets through and the real customers it stops. A rule is worth tightening only when, for the sign-ups it affects, the abuse prevented is worth more than the conversions lost. Work that out per tier with your own numbers:
tighten a tier when:
(abusive sign-ups in tier) x (cost of one abused trial)
> (genuine sign-ups in tier) x (share lost to the extra step) x (value of a genuine trial)Prefer friction a real user can get through. An email confirmation, a card on file or a smaller allowance costs a genuine customer a minute, while a block loses them and often produces a support ticket as well.
It also helps to make the trial a poor target. Stripe's guide points out that API rate limits and usage caps mean even a successfully abused account "cannot extract unlimited value", and it suggests watching behaviour during the trial, suspending accounts that look wrong before the trial runs out.
Review the tiers once a month. For each one, compare how many accounts converted, how many turned out to be abusive, and how many people gave up at the extra step, and adjust the weights from those counts.
Can I just block VPNs on trial sign-ups?
You can, but you'll turn away privacy-minded customers and staff on corporate networks, and organised abusers can still get through on residential-proxy exits that nobody has listed yet, which look like home connections. That is why the table above gives vpn_detected 3 points: enough to send the sign-up to verification by itself, and only a block when it lands on top of a reused email or card. The VPN detection guide covers the API in more depth, and why VPN blocking fails goes into the limits.
Questions people also ask
What is free trial abuse?
Signing up repeatedly, with new emails, cards or devices, to keep using a product's paid value without paying. Scripted versions fall under OWASP's OAT-019 Account Creation threat.
Should I require a credit card for a free trial?
It removes most casual repeat sign-ups and gives you a card fingerprint to match, but it also lowers the number of people who start a trial. A middle path is to ask for a card only when a sign-up lands in a higher-risk tier.
How do I stop people creating multiple accounts for a free trial?
Link new sign-ups to old ones: normalised email, card fingerprint, a device or session ID, and sign-ups per IP for addresses that aren't shared. Score the matches together and add friction as the score rises.
Can an IP check catch abusers on residential proxies?
Sometimes. iplogs flags residential-proxy exits it has already observed (is_proxy with proxy_type: "residential"), but a fresh exit looks like any home connection. That is why, in the scoring above, a reused email, card or device counts for more than the IP verdict.
Does Stripe prevent free trial abuse?
Stripe Radar has a free trial abuse control for trials started through Stripe, and on plans with custom rules you can write rules on card, email and IP attributes. Sign-ups that never reach Stripe still need checks of their own.
Sources
- Apple Developer: Prepare your network or web server for iCloud Private Relay
- Stripe Docs: Free trial abuse prevention
- Stripe: Free trial abuse, tactics, signals, and prevention
- Stripe Docs: Radar rules reference
- Stripe Docs: Radar supported attributes
- Stripe API: The PaymentMethod object (card.fingerprint)
- Stripe Docs: Configure trial offers on subscriptions
- OWASP: OAT-019 Account Creation
- Gmail Help: Dots don't matter in Gmail addresses
- Gmail Help: Email sender guidelines (personal Gmail accounts)
- Stripe: Radar pricing (custom rules by plan)
- Google Workspace Learning Center: email address variations with a plus sign