Guide

Password protect an HTML file you share

Upload the file, then put its page behind a password. Anyone with the link sees a password box first; only people who also have the password see the page.

By the ShareHTML team. Updated .

In the dashboard

  1. Upload the file at sharehtml.org and sign in with an emailed code.
  2. In your dashboard, open Pages and choose Who can open it on the page.
  3. Choose Password, type a password of 6 to 64 characters, and choose Save password.
  4. Send the link, and the password by another route, such as a text or a call.

Password pages are part of Pro, at $4 a month billed yearly. You can change the password or open the page to anyone with the link again whenever you like.

Ask your AI to do it

With ShareHTML added to Claude or ChatGPT, ask: "Put my quiz page behind the password maths2026." Coding agents send the same through the API:

curl -X PATCH https://sharehtml.org/api/v1/pages/<id> \
  -H "Authorization: Bearer $SHAREHTML_KEY" \
  -H "Content-Type: application/json" \
  -d '{"access": "password", "password": "a password of 6 to 64 characters"}'

Good to know

Questions

Can I password protect an HTML file without a server?
Tools exist that encrypt the file itself, but anyone who has the file can keep guessing passwords on their own computer. A password checked by the server stops that.
Do visitors need an account?
No. They type the password and see the page.
Can I change the password later?
Yes, from the same place. The link stays the same.