knownprintDocs

Get started

knownprint documentation

What knownprint gives your site, how a request flows from the browser to your backend, and where to start.

knownprint is a hosted anti-fraud service built on browser fingerprinting. It gives every browser your pages identify a visitor id, tells you how sure it is, and scores every identification with fraud signals and one suspect score. Your backend reads the answer with your secret key, and your own code decides what to do with it: let the visit through, ask for a second factor, hold an order for review, or refuse it.

knownprint runs from your own domain. A proxy rule on your server forwards one path of your site to knownprint, so the script, its identification requests and its cookie are all first party. The page never sees the result: it receives a request id, posts it with the form, and your backend exchanges it for the full answer.

What your site gets

For every visit your page identifies, your backend can read one event with:

WhatFieldWhat it tells you
Visitor idvisitor_idOne id per browser, the same one when the browser comes back.
How sureconfidenceHow sure knownprint is of the visitor id, from 0 to 1. When it is not sure, it starts a new visitor id instead of guessing.
Lookalikesanonymity_set_sizeHow many browsers look like this one, so a common setup is not taken for a sure match.
Likely earlier visitorhigh_recall_idA lead for your review when knownprint did not link the visit to an earlier visitor but one is likely.
Browser and systembrowserThe browser family and version, engine and operating system.
NetworknetworkThe address, its network block, the country and the network operator.
SignalssignalsBots, private windows, VPNs and relays, proxies, Tor, listed addresses, tampering, virtual machines, developer tools, privacy settings and high activity, each with its confidence and detail.
Suspect scoresignals.suspect_scoreOne number from 0 to 100 that adds up the signals of the visit, with what each adds.
IntegrityintegrityWhether the request was replayed, and the origin of the page that made it.
Your account idlinked_idThe account id you attached, so you can see every account a browser has used and every browser an account has used.

The full field list is on Events. What each signal means and how to act on it is in Signals.

Around each event you also get:

  • A search over every visit by visitor, account, address or address range, time, bot result, VPN or suspect score (Search events).
  • Webhooks to your endpoint when a browser is identified, when an account turns up on a new browser or a browser with another account, and when visitors are merged, split or deleted (Webhooks).
  • Feedback: label an event fraud or legit from your review tools (Feedback).
  • One call to delete a visitor's data when a user asks (Visitors and Privacy).

How a request flows

Four parties take part: the visitor's browser, your domain (your web server or proxy), knownprint, and your backend.

Text
 Browser                Your domain (proxy)          knownprint            Your backend
    |                          |                          |                      |
    | GET /kp/agent.js ------->| -- forwards /kp/* ------>|                      |
    | identify() ------------->| -- adds proxy secret --->|                      |
    |<-------- request id -----|<-------------------------|                      |
    |                          |                          |                      |
    | POST /signup (form + kp_request_id) ---------------------------------->     |
    |                          |                          |<-- GET /v1/events/{request_id}
    |                          |                          |--- event (visitor id, signals) -->
    |<------------------------------------------- your decision ---------------  |
  1. The page loads the script from your domain. A script tag loads /kp/agent.js from your own site. Your proxy forwards everything under /kp/ to knownprint and adds your proxy secret and the visitor's address, which tells knownprint the request came through your proxy.
  2. The page identifies the browser. When the visitor submits a form you care about (sign up, log in, checkout), the script runs an identification through /kp/ and receives a request id such as evt_q3vx7k2mz4rb6nw5tc2ehj7ypd. It never receives the visitor id, the confidence or the signals, so there is nothing in the page for an attacker to change.
  3. The form carries the request id. The page puts the request id in a hidden field, kp_request_id by convention, and the form posts to your backend as usual.
  4. Your backend reads the event. Your backend calls GET /v1/events/{request_id} with your secret key, checks that the request id is fresh, unused and from your own page, and reads the visitor id, signals and suspect score.
  5. Your code decides. knownprint gives no verdict. Your backend applies your own rules: a threshold on the suspect score, a check on a signal, a lookup of the visitor id or the account in your own records.

If an ad blocker or a network error stops the script, the form arrives without a request id. Treat that as unknown, not as a pass: let your own policy decide whether such a visit continues, needs a second check, or stops.

What you build

A working integration is four small pieces of your own code and configuration:

  1. A proxy rule in nginx or Caddy (with a variant for nginx behind Cloudflare) that forwards /kp/ to knownprint with your proxy secret. See The proxy.
  2. A script tag on the pages with forms you protect, and a few lines that identify on submit and put the request id in the form. See The browser agent and Forms.
  3. A backend check that reads the event with your secret key, verifies the request id, and returns the event to your own decision logic. See Your backend.
  4. Your rules. What your code does with the visitor id, the signals and the suspect score. The Guides walk through common cases: payment fraud, account takeover, fake signups, bots, promo abuse, ban evasion and account sharing.

Optional, and worth adding early:

  • Send your own account id as the linked id, so knownprint keeps which accounts each browser has used (Accounts).
  • Subscribe to webhooks for identifications, account links and visitor merges.
  • Send feedback when your team confirms fraud or clears a false alarm.

Where to go next