Password protected QR codes
Locking a QR destination behind a password keeps confidential floor plans, internal pricing sheets, or private event details out of reach for anyone who wasn't invited to view them.
Key Takeaways
- A password protected QR code doesn't encrypt the QR image itself — it points to a landing page or file that requires a password before revealing content.
- Dynamic QR codes work best for this use case because you can rotate the password or swap the destination without printing a new code.
- Pairing a protected code with a plain description nearby (like "Scan for leasing floor plans — password provided at front desk") reduces confusion and abandoned scans.
In the past, property managers would email PDF floor plans to prospective tenants one by one, and worry that a public link would end up forwarded to competitors or posted on a random forum. Every request meant digging through folders, attaching the right file, and hoping the tenant didn't share it further. That workaround disappeared once the plans moved behind a password protected QR code posted at the leasing office door — anyone could scan it, but only people with the access code actually saw the document.

The same logic applies anywhere sensitive information sits behind a public-facing code: internal training manuals, wedding livestream links, contractor pricing, or gated event details. A standard QR code takes anyone straight to the destination. A password protected version adds a checkpoint, so the code can be printed on a poster or handed to a stranger without exposing the content behind it.
Security matters more than ever given how QR codes get abused. Keepnet Labs reports that QR codes appeared in 12.4% of phishing payloads in 2023, up from just 0.8% two years earlier. That trend cuts both ways — it's a reason to protect your own sensitive content, and a reason to make sure your protected code doesn't resemble a quishing phishing attempt itself.
How to build a password protected QR code
Locking a QR destination doesn't require special hardware or a developer team. Most password protection happens at the landing page level, not inside the QR code itself, which means the setup is mostly about choosing the right host for your content and generating a dynamic code that points to it.
Step 1: Choose where the protected content will live
Pick a hosting option that supports password gates natively. Google Drive, Dropbox, and most cloud document tools let you require a sign-in or shared link password before a file opens. If you're distributing something like a PDF brochure, review our guide on turning a PDF into a QR code first, then add the password layer through your file host's sharing settings.
Step 2: Set up the password gate on the landing page
If you're using a website builder or a dedicated landing page tool, look for a "password protect this page" setting — most platforms like Squarespace, WordPress, and Notion offer it as a checkbox. For a fully custom page, a lightweight password prompt script works fine since you're not trying to build bank-grade encryption, just a reasonable barrier against casual access.
Step 3: Generate a dynamic QR code pointing to that page
Use a dynamic QR code rather than a static one. Static codes bake the destination URL directly into the code pattern, so changing the password or moving the file means printing an entirely new code. A dynamic code from the free QR code generator lets you redirect the same printed code to a new URL whenever you rotate credentials.
Step 4: Distribute the password separately from the code
Never print the password next to the QR code itself — that defeats the entire purpose. Hand it out verbally, include it in a confirmation email, or post it somewhere only authorized viewers can see, like a private event ticket or a staff-only bulletin board.
Step 5: Test the full scan-to-access flow
Scan the printed code yourself using two or three different phone models before distributing it widely, following the same safety checks you'd use to verify any QR code. Confirm the password prompt loads correctly, the file or page renders on mobile, and the code isn't accidentally indexed by search engines if the underlying page should stay private.
Best practices for secure QR access
A password gate only works if the surrounding setup doesn't leak the content another way. These practices keep the whole chain tight.
Rotate the password on a schedule if the code is posted somewhere semi-public, like a lobby or a printed flyer that outlives the event it was made for.
Avoid embedding the password as a URL parameter — anyone who screenshots or forwards the link bypasses the gate entirely.
Check your landing page isn't cached by search engines; a quick noindex tag keeps private content out of search results even if the URL leaks, which also supports broader GDPR compliance when personal data is involved.
Combine password protection with an expiration date on dynamic codes tied to one-time events, so the code stops resolving once the event ends.
Frequently Asked Questions
Can a QR code itself be encrypted with a password?
Not really — the QR code pattern is just a container for a URL or text string. The password protection happens on the destination page or file, not inside the code's black-and-white pattern.
What's the difference between a static and dynamic QR code for this purpose?
A static code encodes the destination permanently, so changing the password location means reprinting the code. A dynamic code redirects through a short URL you control, letting you swap the password-protected destination anytime. Read more in our static vs dynamic QR codes guide.
Are password protected QR codes safe from phishing concerns?
They can raise suspicion if people aren't expecting a password prompt after scanning. Pair the code with clear signage explaining what it does, and review our QR code safety guide for ways to make legitimate codes look trustworthy.
Do I need special software to password protect a QR code?
No special QR software is required. You need a file host or landing page builder that supports password gates, plus a dynamic QR code generator to point to that gated URL.
Related Guides
Ready to create your QR code?
Generate custom QR codes in seconds - free and easy to use.
Create Free QR Code →