Password protect an HTML file
Put an HTML file behind a password that is checked on the server, then share it as a link. How it differs from in-file encryption scripts.
Last updated
This tool is planned
It is not open yet. Leave your email and we will tell you when it is. The rest of this page is useful today.
Steps
- 1
Drop your HTML file
Drag an .html file or a ZIP of a built site onto the drop zone.
- 2
Set a password
Choose Password as the access mode and type a password of at least four random words.
- 3
Copy the link
Send the link in one channel and the password in another.
- 4
Change or revoke when needed
Change the password or disable the link at any time. Open sessions end within about a minute.
A password is the simplest gate for an HTML document. One secret, shared with a group, no email step. This page explains how to do it properly and when a password is the wrong choice.
Status: Linkwoven is in private beta, and this tool opens with it. Join the waitlist to get access.
Two ways to password protect HTML
| In-file encryption script | Server-side password link | |
|---|---|---|
| How it works | The page content is encrypted and a script in the file decrypts it when the password is typed | The server checks the password before sending any content |
| Where the file lives | Wherever you host or send it | With the sharing service |
| Guessing attempts | Unlimited, offline, once someone has the file | Limited per link |
| Change the password | Re-encrypt and redistribute | Edit the link |
| Revoke access | Not possible for copies already downloaded | Disable the link |
| Know it was opened | No | Yes |
| Needs a third party | No | Yes |
The in-file approach is a reasonable choice when you cannot use a hosting service at all and you pick a long passphrase. For most shared documents the server-side approach is safer, because a weak password cannot be attacked offline.
What Linkwoven does
- Checks the password on the server. Content is sent only after it passes.
- Stores the password as an argon2id hash, not as text.
- Limits attempts per link.
- Serves the document from an isolated sandbox on a separate domain. See the security model.
- Lets you change the password, set an expiry, or disable the link.
A password that holds up
- Use four or more random words, or a generated string of 16 characters.
- Do not reuse a password from any account.
- Send the link and the password in different channels. Link by email, password by message.
- Use a different password for each audience. Create one link per audience, each with its own password, so you can close one without affecting the others.
- Change it when someone leaves the group.
When a password is the wrong choice
A password proves that someone knows a secret. It does not prove who they are. Anyone who receives both the link and the password can get in, and every view looks the same in your activity list.
| Situation | Better mode |
|---|---|
| You need to know which person read it | Verified email |
| Only certain people or company domains may view | Invited only |
| One person leaves and the rest should keep access | Invited only, then remove that recipient |
| The document is not sensitive | Anyone with the link |
All four are explained in access modes.
Limits
- A person who has the password can screenshot or copy the document and can pass the password on.
- The document is not end-to-end encrypted. Linkwoven renders it, so the service can technically access it. Access is restricted and logged.
- "Disable download" means the original file is not offered. A determined viewer can still save what their browser received.
Related
How to share an HTML file privately compares all the options. How to host an HTML file privately covers self-hosted routes, including basic authentication on your own server.
Frequently asked questions
- Is the password check done in the browser?
- No. The password is checked on the server, and no part of the document is sent until it passes. The stored password is hashed.
- How is this different from a script that encrypts my HTML file?
- An encryption script produces a file that anyone can download and try to guess offline, as many times as they like. A server-side check lets attempts be limited and lets you change the password or revoke the link later.
- Can I see who opened a password link?
- You see that it was opened, when, and from what kind of device. You do not see a name, because a password does not identify a person. Use verified email if you need names.
- Is password protection a paid feature?
- The plan is for passwords to be free. Pricing is not final while Linkwoven is in private beta.