---

title: Stop fake signups
description: See how many accounts a browser has already used before you create another, and stop scripted and bulk signups, with the knownprint event of each signup.
---

## The threat

Fake accounts are opened in bulk to spam, to farm signup rewards and free tiers, to inflate votes and reviews, or to sit quietly until they are used for a scam. Each one costs little to make: a new email address, a new phone number from a rented pool, a cleared browser.

The browser is the part that is expensive to replace for every account. knownprint gives your backend the `visitor_id` of the browser behind each signup and the accounts that browser has already used, so your code can decide before the account exists: create it, ask for more, hold it for review, or refuse.

This guide covers where to identify, which fields to read, a decision table, a complete backend example, how to use webhooks and search for review, and the mistakes that turn away real people.

## Where to identify

| Moment                                                                                             | Why                                                   |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| The signup form is submitted                                                                       | The main decision, before the account is created      |
| The email or phone is verified                                                                     | A second look before the account gets its full rights |
| The account first does what it was made for: posts, sends messages, claims a reward, lists an item | Sleeper accounts made weeks earlier wake up here      |

Identify when the form is submitted, and send the request id with it. Do not pass an account id to `identify()`: the account does not exist yet, and your backend attaches it to the event once it does.

```js title="signup.js"
// Once, when the page starts. Resolves null when the script is blocked or fails to load.
const agentReady = window.knownprint
  ? window.knownprint.load({ pk: 'pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' }).catch(() => null)
  : Promise.resolve(null);

/** A fresh request id, or null when the agent is blocked, fails or takes longer than 3 seconds. */
function requestId(action) {
  const timeout = new Promise((resolve) => setTimeout(() => resolve(null), 3000));
  const attempt = agentReady
    .then((agent) => (agent === null ? null : agent.identify({ tags: { action } })))
    .then((result) => (result === null ? null : result.requestId))
    .catch(() => null);
  return Promise.race([attempt, timeout]);
}

document.querySelector('#signup').addEventListener('submit', async (e) => {
  e.preventDefault();
  const form = e.currentTarget;
  // null when blocked or failed: sign up without one; the backend treats it as unknown.
  const kp_request_id = await requestId('signup');
  const res = await fetch('/signup', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ email: form.email.value, password: form.password.value, kp_request_id }),
  });
  handleSignupAnswer(await res.json());
});
```

[Add the browser agent](/install/browser) shows how to load the agent; [Protect a form](/install/forms) covers a plain HTML form.

## Which fields to read

| Field or read                                             | What it tells you at a signup                                                                  | How to use it                                                                                 |
| --------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| `visitor_id`                                              | The browser behind this signup                                                                 | Store it with the new account                                                                 |
| `confidence`                                              | How sure knownprint is about `visitor_id`, from 0 to 1                                         | Refuse on the browser's past accounts only above a level you choose                           |
| `match_type`                                              | `new` when knownprint has not seen this browser before, as far as it can tell                  | A new browser has no accounts of its own; read `high_recall_id`                               |
| `high_recall_id`                                          | The past visitor this browser most likely is, when knownprint was not sure enough to match it  | If that visitor already holds many accounts, review                                           |
| `anonymity_set_size`                                      | The lookalike count: 1 plus the known browsers that look the same                              | Above 1, `high_recall_id` is a weaker lead                                                    |
| `GET /v1/visitors/{visitor_id}/related`, its `linked_ids` | The account ids this browser has carried, up to 50, including those of visitors merged into it | Accounts per browser                                                                          |
| `signals.suspect_score.value`                             | 0 to 100: how much of the visit's signals your site should worry about                         | Your main threshold ([Suspect score](/signals/suspect-score))                                 |
| `signals.bot.value`                                       | `bad` when automation drove the browser                                                        | Bulk signups are scripted: refuse ([Bots](/signals/bots))                                     |
| `signals.datacenter`                                      | The request came from a hosting or cloud network, not a home or mobile line                    | People rarely sign up from a server: challenge ([Network signals](/signals/network))          |
| `signals.vpn`, `signals.proxy`, `signals.tor`             | The signup came through a VPN, a proxy or Tor                                                  | Context, weighed in the suspect score                                                         |
| `signals.virtual_machine`, `signals.tampering`            | The browser runs in a virtual machine, or misreports what it is                                | What account farms run on; weighed in the suspect score ([Browser signals](/signals/browser)) |
| `signals.incognito`                                       | A private window                                                                               | Context only: common among honest users too                                                   |
| `integrity.replayed`                                      | True when this identification was sent before                                                  | Refuse it: never create an account on a replayed request ([Integrity](/signals/integrity))    |

The accounts a browser has carried are the `linked_id` values your backend attached to its events: accounts created on it, and accounts that signed in on it. [Accounts](/accounts) explains linked ids.

## Decision table

The thresholds are starting points to tune on your own traffic, not knownprint defaults. How many accounts one browser may hold is your policy: a family computer holds several honest ones. Rows are checked from the top; the first that applies decides.

| What you see                                                                             | Decision                                                           |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| The request id was used before, the event was replayed, or it was made on another origin | Block                                                              |
| `signals.bot.value` is `bad`                                                             | Block                                                              |
| The browser already carries 3 or more accounts, and `confidence` is at least 0.9         | Block, or review if your service is often shared in households     |
| The browser already carries 3 or more accounts, and `confidence` is below 0.9            | Review                                                             |
| No request id, the event is not found or stale, or knownprint did not answer             | Challenge: verify the email and phone before the account is active |
| `match_type` is `new` and `high_recall_id` carries 3 or more accounts                    | Review                                                             |
| `signals.suspect_score.value` at or above 70                                             | Review: create the account restricted until a person approves      |
| `signals.datacenter.value` is true                                                       | Challenge                                                          |
| `signals.suspect_score.value` from 40 to 69                                              | Challenge                                                          |
| The browser already carries 1 or 2 accounts                                              | Allow, and record it for the account-per-browser count             |
| None of the above                                                                        | Allow                                                              |

"Review" for a signup usually means creating the account in a restricted state (no posting, no payouts, no rewards) until a moderator approves it. The person can carry on, and the abuse waits.

## Backend example

A complete Express handler in Node 22 with Postgres, using the `knownprint.js` module from [Read and verify the event](/guides#read-and-verify-the-event). It counts the accounts the browser already carries, applies the decision table, creates the account, and attaches the new account id to the signup event. The secret key needs `events:read` and `events:write`.

```js title="signup-server.js"
import express from 'express';
import { db, fired, kp, readEvent, suspectScore } from './knownprint.js';

const app = express();
app.use(express.json());

// alter table accounts add column signup_visitor_id text,
//   add column signup_request_id text, add column status text not null default 'active';

/** The account ids a browser has carried, over every visitor merged into it (up to 50). */
async function accountsOf(visitorId) {
  const related = await kp(`/v1/visitors/${visitorId}/related`);
  return related === null ? [] : related.linked_ids.map((l) => l.linked_id);
}

/** The decision table above. The thresholds are examples to tune. */
async function decide(result) {
  if (result.outcome === 'invalid') return { decision: 'block', why: result.reason };

  if (result.outcome === 'ok') {
    const { event } = result;
    if (event.signals?.bot?.value === 'bad') return { decision: 'block', why: 'bot' };

    const accounts = await accountsOf(event.visitor_id);
    if (accounts.length >= 3) {
      return event.confidence >= 0.9
        ? { decision: 'block', why: 'accounts_per_browser' }
        : { decision: 'review', why: 'accounts_per_browser_unsure' };
    }
    if (event.match_type === 'new' && event.high_recall_id !== null) {
      if ((await accountsOf(event.high_recall_id)).length >= 3) {
        return { decision: 'review', why: 'likely_browser_with_accounts' };
      }
    }
    const score = suspectScore(event);
    if (score === null) return { decision: 'challenge', why: 'no_score' };
    if (score >= 70) return { decision: 'review', why: `suspect_score ${score}` };
    if (fired(event, 'datacenter')) return { decision: 'challenge', why: 'datacenter' };
    if (score >= 40) return { decision: 'challenge', why: `suspect_score ${score}` };
    return { decision: 'allow', why: accounts.length > 0 ? 'shared_browser' : 'clean' };
  }
  return { decision: 'challenge', why: result.reason }; // unknown
}

app.post('/signup', async (req, res) => {
  const result = await readEvent(req.body.kp_request_id);
  let decided;
  try {
    decided = await decide(result);
  } catch {
    decided = { decision: 'challenge', why: 'knownprint_unavailable' };
  }
  const { decision, why } = decided;
  const event = result.outcome === 'ok' ? result.event : null;

  if (decision === 'block') {
    if (event !== null) {
      await kp(`/v1/events/${event.request_id}`, {
        method: 'PATCH',
        body: { tags: { action: 'signup', result: 'blocked', why } },
      }).catch(() => {});
    }
    return res.status(400).json({ ok: false, error: 'signup_unavailable' });
  }

  const status = { allow: 'active', challenge: 'unverified', review: 'restricted' }[decision];
  const account = await createAccount(req.body.email, req.body.password, status); // your own
  await db.query(
    'update accounts set signup_visitor_id = $2, signup_request_id = $3 where id = $1',
    [account.id, event?.visitor_id ?? null, event?.request_id ?? null],
  );

  // From now on this browser carries the new account.
  if (event !== null) {
    await kp(`/v1/events/${event.request_id}`, {
      method: 'PATCH',
      // linked_id is a string of 1 to 128 characters
      body: { linked_id: String(account.id), tags: { action: 'signup', result: decision } },
    }).catch(() => {});
  }

  if (decision === 'challenge') await sendVerification(account); // your own: email and phone
  if (decision === 'review') await queueForReview({ accountId: account.id, why }); // your own
  return res.json({ ok: true, status });
});
```

`createAccount`, `sendVerification` and `queueForReview` stand for your own code. [Verify a request in your backend](/install/server) explains the checks in `readEvent`; the related read is documented in [Visitors API](/api/visitors) and [Linked ids API](/api/linked).

Each of `related.linked_ids` and `related.visitors` holds at most 50 entries, strongest first. A browser at that cap has far more accounts than any household, whatever the exact number.

:::note Coming
The Node SDK wraps reading and verifying an event, the related reads and the event update. It is coming with the SDK release; until then, call the routes directly as above. See [Node SDK](/sdks/node).
:::

## Webhooks and search for review

Account farms are often caught after the fact, when the accounts start to act. Three tools help:

- **`account.related_found`.** knownprint sends it when a newly attached account id leaves a browser with several accounts, or an account with several browsers. Its `data` holds `visitor_id`, `linked_id`, and the counts `visitors` (browsers carrying the account) and `linked_ids` (accounts on the browser). A delivery whose `linked_ids` count passes your limit is a review item, even for accounts your signup check allowed. Verify every delivery ([Verify a webhook](/webhooks/verify)).
- **The related reads.** `GET /v1/visitors/{visitor_id}/related` lists a browser's accounts and the other browsers related to it; `GET /v1/linked/{linked_id}/related` lists the browsers that carried an account and the other accounts on those browsers. Start from one confirmed fake account and walk outward to the rest of its farm.
- **Search.** `GET /v1/events?visitor_id=v_...` lists every event of a browser and of every visitor merged into it, newest first; `GET /v1/events?min_suspect_score=70&start=2026-12-01T00:00:00Z` the risky visits of a period. Match events to accounts by the `request_id` or `linked_id` you stored.

```js title="related-found.js"
import express from 'express';
import { verifyWebhook } from './knownprint.js';

const app = express();

// Read the body as text: the signature covers the exact bytes received.
app.post('/hooks/knownprint', express.text({ type: 'application/json' }), async (req, res) => {
  let envelope;
  try {
    envelope = verifyWebhook(req.headers, req.body, process.env.KNOWNPRINT_WEBHOOK_SECRET);
  } catch {
    return res.status(400).end();
  }
  res.status(204).end(); // answer quickly; work after
  if (envelope.type !== 'account.related_found') return;
  if (await alreadyHandled(envelope.id)) return; // deliveries can repeat: dedupe on the id
  const { visitor_id, linked_id, linked_ids } = envelope.data;
  if (linked_ids >= 3) await queueForReview({ visitorId: visitor_id, accountId: linked_id });
});
```

[Webhooks](/webhooks) lists the event types and how deliveries are retried; [Verify a webhook](/webhooks/verify) has the signature check. When a moderator confirms a fake account, label its signup event `fraud` with `POST /v1/events/{request_id}/feedback`, and label a wrongly held one `legit` ([Feedback](/feedback)).

## Pitfalls

- **Creating the account without a request id.** A signup script posts straight to your endpoint and sends none. Treat it as unknown: verify the email and phone before the account can do anything.
- **One account per browser as a hard rule.** Families, flatmates, schools, libraries and shops share computers. Set the limit your service can live with, and send the cases around it to review.
- **Counting accounts on the event's visitor id alone.** After a merge, earlier accounts may sit with a visitor merged into this one. The related read covers merged visitors; [Visitors](/visitors) explains merges.
- **Treating `high_recall_id` as the same browser.** It is the most likely past visitor when knownprint was not sure, and other browsers can look the same (`anonymity_set_size` above 1). It sends a signup to review, never to a refusal.
- **Refusing every VPN or private window.** Both are common among honest people. Let the suspect score weigh them.
- **Attaching the account from the page.** A `linkedId` passed to `identify()` comes from the browser, which the abuser controls. Attach the new account from your backend, as the example does.
- **Saying why.** "Too many accounts on this device" tells the abuser what to change. A plain "We could not create your account" tells them nothing.
- **Keeping only knownprint's copy.** Events are deleted after your account's event retention period, between 30 and 365 days ([Privacy](/privacy#retention)). Store the signup `visitor_id` and `request_id` with the account.

## Related pages

- [Guides](/guides): the decision pattern every guide follows.
- [Promo abuse](/guides/promo-abuse): the reward that fake accounts are often made for.
- [Ban evasion](/guides/ban-evasion): a banned user's new account is a signup too.
- [Bots and scrapers](/guides/bots-and-scrapers): scripted signups.
