Password protect a file sharing link
Create and test a password-protected file, folder or bundle link, including private-recipient verification, unlock limits and workspace policy errors.
Last reviewed
Add the password before generating or sending a sharing link. Every link keeps its own settings, so protecting a new URL does not change older URLs to the same file or folder.
The secret controls access through that public token. It does not encrypt the stored item, identify the recipient, change workspace membership or recall a copy someone already downloaded.
Steps: create a protected public link
- Open Files and locate the file, folder or selected bundle.
- Open Share, then select By link.
- Review Expires in. Expiry and password are independent controls.
- Expand Advanced options.
- Enter the delivery secret in Password (optional). The placeholder reads Min 8 characters.
- Choose any separate controls you need, such as View only., Remove photo metadata. or Download limit (optional).
- Select Generate link.
- Under Share link created, copy the URL and select Done.
Dosya trims whitespace around the password. A non-empty result shorter than eight characters returns Password must be at least 8 characters.
The member’s role needs the create_share_links capability. Workspace policy can refuse creation with Share links are disabled for this workspace. A workspace configured to require passwords returns This workspace requires a password on all share links when the field is empty. A full_lock link also requires a password.
Test the first-time recipient experience
- Open a new private browser window that has never visited this URL.
- Paste the complete link. For a file, the locked page says This file is password protected.
- Enter the delivery secret in Password.
- Complete the human-verification control if it appears, then select Unlock.
- Confirm the expected filename, folder or file collection appears.
- Check that preview and download controls match the link settings. A test download can consume one use of a download-limited link.
Successful password entry creates a signed 30-minute browser grant for this link token. Refreshing can continue without another prompt while that grant remains valid. Test with a fresh private window whenever you need to reproduce a new recipient’s view.
Understand password attempt limits
The password endpoint allows five attempts per sharing token and client IP during 15 minutes. It also maintains a consecutive-failure lock on the link, which protects against guesses distributed across IP addresses. Errors include Incorrect password and Too many attempts, try again later.
Stop guessing when the secret fails. Confirm the URL and password with the sender through a known private channel. Repeated attempts can block the correct recipient until the lockout ends or the owner rotates the password through the API.
The password is case sensitive. Leading and trailing spaces are removed before verification.
Combine a password with named-recipient access
On Share → By email, the sender can select Only these people can open it. That creates a restricted link. Holding the URL and password is then insufficient:
- The recipient enters the address that received the share.
- Send code returns the same generic message whether or not the address is invited, preventing recipient-list discovery.
- An invited address receives a six-digit code that expires after 15 minutes.
- That code permits five incorrect guesses; after expiry or five failures, request a new one.
- Successful verification creates a separate 30-minute recipient grant.
- When the link also has a password, the page then asks for the password and creates its own 30-minute password grant.
The two grants use different cookies and signed subjects. Email verification cannot substitute for the password, and a password grant cannot bypass the named-recipient gate.
Public file requests use a different invitation model. Their recipient URL associates an address without an emailed verification code.
Deliver and retain the access details safely
Send the tested URL and exact password through separate trusted channels when practical. Anyone who obtains both can forward them unless the link is also restricted to named recipients.
Open Shared → By me after delivery and verify the target, password indicator, expiry, access mode and download setting. Review older links to the same item. Revoke any URL that should no longer work; revocation ends that token immediately and cannot be undone.
Password protection does not remove a recipient’s saved download. View only. removes ordinary download controls and serves eligible content inline. JPEG, PNG and HEIC images are re-encoded as WebP derivatives with the longest edge capped at 1,600 px. WebP, AVIF, GIF, SVG, BMP and ICO can be served inline as their original bytes, so View only does not promise source-byte withholding for every previewable image. Visible content can still be captured.
Change or remove the password later
The current web app does not edit an existing link’s password. Web users revoke the old URL and create a replacement with the new secret. This gives immediate cutoff because the replacement uses another token.
The API can update a live link in place. New unlocks require the replacement password, while an already issued password grant can remain valid for the rest of its 30-minute life. An API update cannot remove the password when workspace policy requires one or the link uses full lock.
Follow Change a sharing-link password for both workflows.
Troubleshooting
The password prompt is missing. Use a new private window and confirm that you copied the protected URL rather than an older unprotected link.
A correct password receives a private-link error. Complete the named-recipient email verification first. The server evaluates the recipient gate before it checks the password.
The link remains open after the password changed through the API. The browser may hold a valid 30-minute grant. Revoke the link for immediate cutoff.
The protected link is expired or revoked. A password cannot reopen it. The sender must extend an editable live link or create a replacement after revocation.
The page says the item is unavailable. The shared target may have been deleted, moved behind a full lock or hidden from its creator. The owner must correct the target state or issue another link.
Expected result
A first-time public recipient must supply the link password before Dosya reveals the shared content. A restricted recipient must first prove control of an invited inbox and then pass the password when both controls are enabled.
Related guides
Was this helpful?
Loading helpfulness results…
Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.
Questions and replies
Ask about the steps in this guide. Questions are reviewed before publication.
Keep account details, credentials and private files out of public questions. Use private support for those.
Loading questions…
Sign in to your Dosya account to ask a question.