The knownprint demo

What knownprint tells your site about this browser, and under it a playground to wipe it and run it again.

Who is this browser?

Live on the pilot node

The playground

Wipe this browser and run again, and see what your site would get back.

    For developers

    Wire it up

    Three changes to your site. The script and its cookie run from your own domain.

    1. Step 1

      One proxy rule

      Your nginx or Caddy forwards /kp/ to knownprint, so the script, its endpoints and its cookie are all on your own domain. Only knownprint's own cookie goes through; your session cookies stay where they are.

      nginx, inside your site's TLS server block
      # Inside your site's TLS server block. Signup (coming) gives you this
      # file and a one-line include for your http block, with your upstream
      # and proxy secret.
      include /etc/nginx/snippets/knownprint.conf;
      Caddy, inside your site block
      import knownprint
    2. Step 2

      One script tag, and the request id posted with the form

      The agent reads the browser and hands the page a request id (requestId) and its expiry, never the visitor id or the confidence, so there is no answer in the page to tamper with. The page never learns which browser it is; your backend does. Your form posts the request id (kp_request_id) with the signup.

      Your page
      <script src="/kp/agent.js" defer></script>
      
      // PUBLIC_KEY is your environment's public key (pk_live_...).
      const agent = await window.knownprint.load({ pk: PUBLIC_KEY });
      const { requestId } = await agent.identify();
      form.elements.kp_request_id.value = requestId; // posted with the form
    3. Step 3

      One call in your backend

      Read the event with your secret key. Your own code decides what to do with it.

      HTTP, live today
      GET /v1/events/evt_q3vx7k2mz4rb6nw5tc2ehj7ypd
      Authorization: Bearer <your secret key>
      Node SDK, and the same in Python, PHP and Go
      const event = await kp.verifyRequestId(await kp.events.get(requestId), { origin, ip });

    Get early access

    What you get

    Every signal, by name

    Every visit comes back with a visitor id, how sure knownprint is, and the signals around it, each under the name your code reads. Everything below is live on the pilot today, and the panel above shows most of it on your own browser.

    Identification

    • Recognise a returning browser, with or without its cookie.

      visitor_id match_type

    • Decide how far to trust a match: how sure knownprint is, meant as a probability.

      confidence

    • See how many browsers look like this one, so a common setup never reads as sure.

      anonymity_set_size

    • When knownprint will not link, get the likely candidate, if there is one, for review.

      high_recall_id

    • Spot what is probably a second browser on the same device. coming

      device_cluster_id cluster_confidence

    • Pull every visit of a browser, an account or an address.

      GET /v1/events GET /v1/visitors/{id}

    Signals

    • Catch scripted signups, and know which tool ran them.

      signals.bot detail.bot_type

    • Know when a browser runs privacy tools, and which kind.

      signals.privacy_settings

    • Know when a visit comes from a private window.

      signals.incognito

    • Read the browser, engine and OS as knownprint classified them.

      browser

    • Read the address and network block of each visit.

      network.ip network.ip_prefix

    • See the country an address is used in and the network operator behind it.

      network.country network.asn

    • Know when a visit comes through a VPN, a privacy relay or a datacentre, and which service when it is a known one.

      signals.vpn detail.kind detail.provider

    • Know when the address is a proxy in a datacentre, part of a proxy seller's block, or a Tor exit.

      signals.proxy detail.type signals.tor

    • Know when the address is a known source of attacks or malware, or part of a network held for abuse, and which.

      signals.ip_blocklist detail.categories

    • Catch browsers that contradict themselves about their name, system, hardware or screen, and know when the browser itself was built to.

      signals.tampering detail.spoofed detail.anti_detect_browser

    • Know when a visit comes from a virtual machine, an Android emulator, a cloud phone or a rented cloud desktop, and on which platform where it shows.

      signals.virtual_machine detail.kind detail.platform

    • Know when the developer tools are open on your page, in Chrome and the browsers built on it.

      signals.developer_tools

    • Know the browsers that are busiest on your site today.

      signals.high_activity

    • Catch replayed and forged requests.

      integrity

    • Act on a single threshold: a score from 0 to 100 that adds up the signals of a visit, with what each of them adds.

      signals.suspect_score detail.parts

    • Check what the agent costs your page.

      timings

    See yours in the panel above