Not the marketing version — the actual mechanics: what gets generated at production, what happens on scan, and where the fraud-detection logic really lives.
The QR code itself never stores "authentic" or "fake" — it stores a short token that points to a database record. Verification happens server-side: the token is looked up, checked against scan history and fraud rules, and a result is returned. Everything that matters happens after the scan, not inside the code. This builds on the concepts introduced in our complete anti-counterfeit QR code guide.
Most explanations of QR verification stop at "scan the code, see a result." That's true but incomplete — it skips the part that actually determines whether the system works: what happens on the server between the scan and the result. Two systems can both show a green checkmark and be built completely differently, with very different resistance to fraud.
The identifier encoded in each QR code — the token — can be generated a few different ways, and the method matters more than almost anything else in the system:
| Method | Guessable? | Verdict |
|---|---|---|
| Sequential (0001, 0002...) | Trivially — next ID is +1 | Never use |
| Random string (sufficient length) | Not at meaningful scale | Standard choice |
| Cryptographic hash of internal data | No, and self-verifying | Higher assurance, more complex |
A random token needs to be long enough that brute-forcing valid IDs isn't practical — short codes narrow the space enough that automated guessing becomes a real risk at high scan volumes. This is a design decision made once, at token generation, that determines how meaningful "unique ID" actually is later.
Every step after the initial scan is standard web infrastructure. There's no special "QR verification protocol" — the QR code's only job is getting a token in front of a server quickly and without friction.
"The system detects duplicates" is doing a lot of work in most explanations of this. Concretely, fraud detection is a set of rules evaluated at lookup time against the accumulated scan log for that token:
None of these rules require anything exotic — they're threshold checks against logged data. The sophistication is in tuning the thresholds for a given product's real-world handling pattern (a product that legitimately changes hands often needs looser rules than one that shouldn't be rescanned at all).
A lot-level (batch) code is cheaper to generate and manage — one token per production run — but can only tell you the batch is legitimate, not the specific unit. Item-level serialization requires generating, printing, and tracking a unique token per unit, which is more infrastructure but the only approach that catches a single copied label reprinted across many fakes. See the full decision guide: Item-Level vs. Lot-Level Serialization.
Real-time fraud detection inherently requires a network call — there's no way to check "has this been scanned elsewhere recently" without a server to ask. Fully offline approaches exist (a cryptographically signed token a device can validate locally) but they can only confirm the code was legitimately issued, not that it hasn't been copied and scanned elsewhere already. This is essentially how cryptographic NFC tags work instead of QR — see our comparison, NFC vs. QR Codes for Anti-Counterfeit Protection. At high scan volumes, the practical constraint becomes database lookup latency, not the QR code itself — a well-indexed token lookup is a fast, simple query regardless of catalog size.
Fraud detection requires logging scan location and timing — which means the system is, functionally, tracking where and when a product moves through the hands of whoever scans it. That's a reasonable tradeoff for brand protection, but it's worth being explicit about with customers: what's collected, how long it's retained, and whether it's tied to an individual or just a general geography.
No. The QR code stores a short token or URL — a pointer. All the actual data lives server-side, looked up at scan time.
Random or cryptographically generated, never sequential — a sequential token lets anyone guess valid-looking IDs without ever seeing a real product.
Not for real-time database verification, which inherently requires a network round trip. Offline approaches trade real-time fraud detection for offline capability.
Typically the token, an approximate location, and a timestamp — enough to power fraud detection. How much is collected and disclosed is a real privacy design decision.
Generate serialized tokens and manage the verification layer with QRTRAC's Scan to Verify.