Browser Fingerprinting

What browser fingerprints are, FingerprintJS v3 vs. v4 licensing, expected accuracy, and basic usage.

Oct 22, 2024 · 1 min read · 109 Words · -Views -Comments · Programming
JavaScript WebShell 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

With logged‑in users, identification is trivial. For anonymous users, we can use a browser fingerprint — a unique identifier derived from available device/browser attributes at a point in time. JS doesn’t expose “a fingerprint” directly; you have to compute it (libraries like FingerprintJS help).

FingerprintJS v3

Latest is v4, but v4 uses BSL (becomes MIT after 4 years). In 2024, v4 isn’t MIT yet, so v3 (MIT) is the safe open‑source choice.

Accuracy

  • OSS accuracy ~40–60%; commercial ~99.5% (with server‑side components).
  • Fingerprints often remain stable only for weeks.

Usage

const fpPromise = new FingerprintJS.load();
    fpPromise
      .then(fp => fp.get())
      .then(result => {
        const visitorId = result.visitorId;
        console.log(visitorId)
      })

References

Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover