When a password protected link rejects the correct password, the password itself is rarely the problem. The value that reaches the server usually differs from what you meant to type: a trailing space from copy-paste, an autofill swap, an expired form token, or a lockout after too many tries. Type the password by hand in a private window first, and the cause usually shows itself within two minutes.
TL;DR:
- Most "wrong password" errors come from a different string reaching the server, and the password is rarely forgotten. Trailing spaces, autofill and smart punctuation cause the bulk of them.
- Sort the failure into one of three types first: the check fails, the check passes but the session is lost, or a lockout blocks the check.
- Accented and non-Latin characters can fail because the same character has two byte forms. Server-side normalization fixes it.
- If you own the link, trim whitespace at both creation and check, and test with a private window on a second device.
- A self-hosted setup lets you read your own logs, so you can see what the server received instead of guessing.
Table of Contents
- Password Protected Link Not Working With the Correct Password: Start With What the Server Received
- Two-Minute Triage: Match the Symptom to the Cause
- Hidden Characters, Autofill, and Keyboard Slips on the Visitor Side
- Unicode and Encoding: Why "é" Can Fail When It Looks Identical
- When the Password Works but the Page Sends You Back to the Prompt
- Lockouts and Rate Limits: Right Password, Still Refused
- If You Own the Link: Server-Side Causes to Check
- Get a Password Gate You Can Debug on Your Own Server
- Frequently Asked Questions
- Sources
Password Protected Link Not Working With the Correct Password: Start With What the Server Received
A password gate compares two strings. The one that counts is the string the server receives, and it can differ from what you see on screen. That gap explains most "correct password rejected" reports. The main guide on password protected links covers what these links lock and how they are built. This article deals only with the failure.
There are three separate failures, and each has a different fix:
- The comparison fails. The server received a different string than the stored one. Hidden characters, autofill, case, and encoding all live here.
- The comparison passes, the session does not. The password is accepted, but a missing cookie or a cached page sends you back to the prompt. It looks like a rejection but is not one.
- The comparison never happens. A rate limit or lockout blocks you before the password is checked, so a right password still gets a refusal.
Two-Minute Triage: Match the Symptom to the Cause
Run the quick tests in the last column before you change anything. Each one rules out a whole family of causes.
| What you see | Likely cause | Quick test |
|---|---|---|
| "Incorrect password" every time, even typed by hand | Password changed, or you have the wrong link | Ask the sender to confirm the exact link and current password |
| Works typed, fails pasted | Trailing space or hidden character | Paste into a plain text editor and select all |
| Fails only in your main browser | Autofill or a stale saved password | Open a private window and type it manually |
| Page reloads to the prompt with no error | Cookie blocked or page cached | Try another browser with extensions off |
| Error appears after leaving the tab open | Expired form token | Reload the page and enter it fresh |
| Fails after several quick tries, even with the right one | Rate limit or lockout | Wait 15 minutes, then try once |
| Works for others, fails only for you | Local cause: autofill, extension, network | Switch to mobile data and a different device |
Hidden Characters, Autofill, and Keyboard Slips on the Visitor Side
Most of these failures start on the visitor side, and the causes are mundane.
- Trailing and leading spaces. Copying a password from an email, a chat message, or a PDF often drags a space or line break along. To a server that does not trim, "summer2025" and "summer2025 " are different passwords.
- Autofill filling the wrong entry. Password managers match on domain. If you saved a password for the same domain earlier, the manager may fill that one over the new password. Clear the field and type it by hand.
- Smart punctuation. Messaging apps and word processors turn straight quotes into curly ones and two hyphens into a long dash. A password containing an apostrophe or hyphen can change in transit unnoticed.
- Look-alike characters. Capital I, lowercase l, and the digit 1 look nearly identical in many fonts, and so do O and 0. If the sender read the password aloud or from a screenshot, suspect these first.
- Caps Lock and keyboard layout. A phone keyboard set to another language, or an external keyboard with a different layout, can move symbols like @ and # to different keys.
- Zero-width characters. Text pulled from some web pages and documents carries invisible characters that staring at the field will never reveal.
Pro Tip: Paste the password into a plain text editor, press Ctrl+A (Cmd+A on a Mac), and look at the highlight. A highlight that extends past the last visible character shows a trailing space. For zero-width characters, paste into a character counter. If a nine-character password reports ten, something invisible is in there. Retype the password from scratch and compare the counts.
Unicode and Encoding: Why "é" Can Fail When It Looks Identical
If the password contains an accented letter, a non-Latin script, or an emoji, a second class of problem applies. The Unicode Consortium's normalization standard (UAX #15) explains that a character like "é" can be stored as one code point (U+00E9) or as an "e" followed by a combining accent (U+0301). They render identically but have different bytes. A password set on a Mac and typed on a Windows phone can produce each form, and a naive comparison treats them as different strings.
The fix belongs on the server. NIST's SP 800-63B guidance on memorized secrets says verifiers should accept the space character and Unicode characters, and should apply NFKC or NFKD normalization to a Unicode password before hashing it. A gate that skips this step rejects some correct entries for some people and never for others, so the bug looks random.
HTTP Basic authentication, the browser's built-in login dialog, has a related history. RFC 7617 added an optional charset="UTF-8" parameter because earlier specifications never said which character encoding the credentials should use. If a basic-auth prompt rejects a password with non-ASCII characters, suspect encoding.
My recommendation for anyone creating a link password: use plain ASCII letters, digits, and a few safe symbols. A four-word passphrase of lowercase words with hyphens is long enough for a shared link and avoids every encoding problem in this section.
When the Password Works but the Page Sends You Back to the Prompt
Sometimes the server accepts the password and the visitor still lands on the form again. The cause is usually how the unlock state is remembered. Most gates set a cookie after a successful check, as described in MDN's guide to HTTP cookies, and if that cookie never sticks, the next request looks like a fresh visitor.
- Blocked or stripped cookies. Strict privacy settings, content blockers, and some corporate proxies drop cookies. Test in a browser with extensions disabled.
- In-app browsers. Links opened inside a social or messaging app load in an embedded browser that can handle cookies differently from your main one. Use "open in browser" and retry.
- HTTP versus HTTPS mismatch. A cookie marked secure is not sent over plain HTTP. If the short link redirects through an insecure hop, the unlock state can vanish.
- Cached prompt page. If a CDN or browser caches the password page, you may see a stale prompt even after a successful unlock. A hard reload or a private window settles it.
- Expired form token. Many forms include a hidden token that expires. Leave the tab open for an hour, then submit, and the server rejects the request with the same generic "incorrect password" message. Reload and enter the password again.
- Email scanners. Security software in a corporate mailbox often opens links before you do. On single-use or attempt-limited links, that automated visit can use up the allowance.
Lockouts and Rate Limits: Right Password, Still Refused
Rapid retyping after a rejection is the most common way a good password ends up refused. Once a gate counts failures, it turns away the correct password along with the wrong ones. Many gates also return the same message for a wrong password and a lockout, so you cannot tell them apart.
NIST SP 800-63B allows a verifier to cap consecutive failed attempts at 100 per account, so a lockout threshold of 5 to 10 is a design choice, not a standard.
Throttling is sound practice. Link passwords are short and shared, so brute-force attempts are a real risk. The trouble is that the user cannot see it. If you run the gate, show a distinct "too many attempts, try again later" message with a retry time. If you are the visitor, stop after two failures, wait 15 minutes, and then make one careful attempt.
If You Own the Link: Server-Side Causes to Check
When several visitors report failures with a password you know is right, look at the link instead of the visitors.
Check the link, then the stored value
- Wrong link or variant. If you run an A/B split, each variant may carry its own password, or one variant may have none. The guide to split testing landing pages with a link shortener covers how variants multiply links.
- Password changed or link regenerated. Editing a link in a dashboard can reset its password field. Open the link settings and reset the password to a known value.
- Whitespace saved at creation. If you pasted the password when you set it, the stored value may include a trailing space that nobody can reproduce. My choice: trim whitespace at both creation and check for shared link passwords, and block control characters on save.
- Hashing limits. The bcrypt algorithm reads only the first 72 bytes of its input, and some library versions truncate silently while others raise an error. Multi-byte characters use up that budget quickly. After a library upgrade or server migration, a long passphrase can start failing for this reason.
- Mismatched domains. A link created on one custom domain and shared on another may resolve to a different record. Confirm that the exact URL you sent is the one you configured. The explainer on how a URL password gate works covers the moving parts.
Read the logs
The fastest way to end the guessing is to see what the server received. With a hosted shortener, you get whatever the vendor's dashboard shows. On your own server, you can read the request log, check the response code for each attempt, and tell a 401 or 403 (check failed) from a 429 (rate limited) in seconds. It is the same argument for keeping click data on your own server: you can inspect the evidence yourself.
Get a Password Gate You Can Debug on Your Own Server
Most of the pain in this article comes from not being able to see what the gate did. Kortli is a self-hosted link shortener that you install on your own Linux server. Its password-protected links run on that server, so when a visitor says the right password failed, you can check your own logs and click data instead of waiting on a vendor. Custom domains carry no per-domain fee, and the license is a one-time payment instead of a subscription. The case for leaving monthly link-shortener fees explains how to move your links across.
There are limits. Self-hosting means you maintain the server, including updates and backups. A link password also keeps out casual visitors only, so use real authentication for anything truly sensitive. Check the current price and server requirements on the site before you buy.
Frequently Asked Questions
Why does my password protected link say the password is wrong when I know it is right?
The server is almost always receiving a different string than the one you think you typed. The usual causes are a trailing space from copy-paste, an autofill entry replacing your input, or look-alike characters such as O and 0. Type the password by hand in a private browser window to rule these out.
Can a password-protected link lock me out for typing the password wrong too many times?
Yes. Many gates count failed attempts and then refuse every attempt, including a correct one, until a timer expires. Stop after two failures, wait about 15 minutes, and try one careful attempt.
Why does the link work on my phone but not on my laptop?
The difference is usually local: a password manager filling an old entry, a browser extension blocking cookies, or a cached copy of the prompt page. Try the laptop in a private window with extensions off. If it works there, one of those is the cause.
Do special characters in a link password cause problems?
They can. Accented letters and emoji may exist in more than one byte form, and servers that skip Unicode normalization will reject some of them. Chat apps can also swap apostrophes and hyphens for curly or long versions. Plain ASCII passphrases avoid all of this.
How do I fix a password protected link as the owner when visitors keep failing?
Reset the password to a simple ASCII value, check that you are sending the exact link and domain you configured, and trim whitespace at creation and verification. Then read your server logs to see whether failures are 401 or 403 responses (the check failed) or 429 responses (rate limited).
Sources
- Digital Identity Guidelines: Authentication and Lifecycle Management (SP 800-63B) | NIST
- Unicode Normalization Forms (UAX #15) | Unicode Consortium
- The 'Basic' HTTP Authentication Scheme (RFC 7617) | IETF
- Using HTTP cookies | MDN Web Docs

Leave a Reply