Skip to content
Linkwoven
Sample page. Placeholder copy that shows the template. Real content replaces it before launch.

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. 1

    Drop your HTML file

    Drag an .html file or a ZIP of a built site onto the drop zone.

  2. 2

    Set a password

    Choose Password as the access mode and type a password of at least four random words.

  3. 3

    Copy the link

    Send the link in one channel and the password in another.

  4. 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 scriptServer-side password link
How it worksThe page content is encrypted and a script in the file decrypts it when the password is typedThe server checks the password before sending any content
Where the file livesWherever you host or send itWith the sharing service
Guessing attemptsUnlimited, offline, once someone has the fileLimited per link
Change the passwordRe-encrypt and redistributeEdit the link
Revoke accessNot possible for copies already downloadedDisable the link
Know it was openedNoYes
Needs a third partyNoYes

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.

SituationBetter mode
You need to know which person read itVerified email
Only certain people or company domains may viewInvited only
One person leaves and the rest should keep accessInvited only, then remove that recipient
The document is not sensitiveAnyone 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.