Assets, attackers and realistic abuse paths
Locking an NFC tag means preventing further changes to the data stored on its chip. Write-protection is the same principle applied at the level of individual memory blocks or pages rather than the entire tag. Once a lock is applied, any NFC reader that attempts to write new data will receive an error response, and the existing content remains unchanged.

NFC tags hold data in a memory structure divided into sectors, pages, or blocks depending on the chip family. Locking mechanisms operate on those divisions. A tag might allow you to lock a single block containing a URL while leaving other blocks writable, or it might offer a single command that locks every writable area at once. The available options are determined by the specific chip, not by the tag's outer casing or printed design.
Types of Lock
Most common NFC chips used in retail, museum and event deployments fall into a few categories when it comes to locking behaviour.
- One-time programmable (OTP) lock. The lock bit can be set once and cannot be reversed. The tag becomes permanently read-only. This is the standard approach for NTAG213, NTAG215 and many MIFARE Ultralight variants.
- Reversible lock via password. Some chips, such as NTAG216 and certain MIFARE DESFire models, support a password-protected write lock. You can prevent writes until the correct access password is presented. This adds flexibility but introduces the operational burden of password management.
- Individual block lock. Rather than locking the whole tag, you select specific memory blocks. Useful when a tag stores a mix of fixed and updatable data, though in practice most proximity deployments write a single URL and lock everything.
- Dynamic lock bytes. Certain chips expose lock configuration through reserved bytes that must be written in a precise pattern. Getting the byte sequence wrong can lock the wrong blocks or leave the tag in an unexpected state.
The locking mechanism is separate from encryption. A locked tag is not an encrypted tag. Anyone with an NFC reader can still read the data. Locking only prevents modification, which is a different security property. For a broader look at the security landscape, the NFC Tag Security Basics guide covers authentication, encryption and access controls in more detail.
Layered protection for tags, codes and accounts
The decision to lock a tag should follow directly from what the tag is meant to do in the physical space. If the tag's purpose is to point a visitor's phone at a fixed URL for an exhibit, a product, or a room booking panel, there is no operational reason to leave it writable. An unlocked tag in public reach is a liability, not a feature.
Museum and Exhibit Labels
Museums typically print an NFC icon beside exhibit text or embed a tag behind a discrete panel. The URL it encodes points to a content management system where curators update the audio, text or images served to the visitor. Because the URL itself is stable and the content changes server-side, the tag should be locked at the point of installation. An unlocked tag in a gallery could be overwritten by a visitor with a writing app, redirecting subsequent visitors to an unrelated address.
Retail Product Authentication
Brands using NFC for authentication encode a unique serial or a signed token onto each tag. The value of the system depends entirely on that data remaining unchanged. Locking is mandatory here, and the lock should be applied during the manufacturing or packaging process, not at the point of sale. If the tag uses a cryptographic signature, the signature becomes invalid the moment the data is altered, so locking protects the commercial investment in the tag.
Event Wristbands and Badges
At events, NFC wristbands often store a unique identifier linked to a ticketing system. The identifier must not change between the entry gate and the bar. Locking at the point of issuance prevents accidental or deliberate overwrites during the event. However, some event platforms deliberately leave certain memory areas writable to allow on-site upgrades or access-level changes. In those cases, individual block locking or password-protected writes are more appropriate than a full OTP lock.
Dynamic QR vs Locked NFC
A common point of confusion arises when comparing NFC to dynamic QR codes. A dynamic QR code points to a short URL that the provider can redirect to different destinations over time. The QR image itself never changes, but the destination does. NFC can achieve the same effect without locking and unlocking: encode the same short redirect URL, lock the tag, and change the destination on the server. There is rarely a good reason to keep an NFC tag writable just to change where it points.
Verification Workflow
Before locking, read the tag back with at least two different devices and confirm the URL resolves correctly. Lock the tag, then read it again to verify the lock took effect. Attempt a test write to confirm the tag rejects it. Log the tag's UID, the locked URL, and the lock status in your asset register. This takes seconds per tag during installation and prevents the far more expensive problem of discovering unlocked or incorrectly locked tags after public deployment.
Monitoring, replacement and escalation
Locking Before Verifying Data
The single most common error is applying the lock immediately after writing without reading the tag back. Typos in the URL, encoding errors, or incomplete writes become permanent. Always verify before locking. There is no rollback from an OTP lock.
Assuming Uniform Locking Across Chip Families
Different chips behave differently even within the same manufacturer's range. An NTAG213 locks differently to an NTAG216. MIFARE Ultralight EV1 has different lock byte positions to the original Ultralight. If your procurement process allows mixed chip batches, your writing software must handle each chip's lock procedure correctly. Test with a sample from every batch before committing to a production run.
Ignoring the Manufacturer Datasheet
Lock byte maps are not standardised across all NFC chips. The memory map, lock byte positions, and the exact bit patterns required to lock specific blocks are documented in the chip manufacturer's datasheet. Relying on a single app or writing tool without cross-referencing the datasheet for that specific chip variant is a risk, particularly if you later switch tools or the tool's behaviour changes in an update.
Confusing Physical Tamper Evidence with Data Locking
Some tags incorporate a physical tamper loop: if the tag is peeled from its surface, a circuit breaks and the chip becomes permanently unreadable. This is a separate mechanism from write-protection. A tamper-evident tag can still be write-protected, and a standard tag with an OTP lock is not tamper-evident. If your use case requires both properties, specify both when procuring.
Not Documenting Lock Status in the Asset Register
When a tag fails in the field, the fault-finding process starts with knowing its intended state. If your asset register records only the UID and location but not whether the tag is locked, staff cannot quickly determine whether a replacement tag should be pre-locked or left writable. Include lock status, lock type, and the date locked alongside the other tag properties.
Key Checks Before Deployment
- Confirm the exact chip type in the tag, not just the product name from the supplier.
- Read the manufacturer datasheet for that chip's lock byte map and behaviour.
- Write test data, read it back on multiple devices, then lock.
- After locking, attempt a write to confirm the lock is active.
- Record the UID, locked data, lock type and date in your asset register.
- If using password-protected locks, document the password management procedure separately and ensure it survives staff changes.
Locking and write-protecting NFC tags is a straightforward operation, but its irreversibility in the common OTP case demands a disciplined workflow. The cost of getting it wrong is not the tag itself but the labour of replacement and the potential for a corrupted visitor experience in the intervening period. Treat the lock step as a formal quality gate, not an afterthought.

