---
title: "How to share an HTML page privately, without a password"
description: "Publish the page private and invite people by email. Only they can open it, after signing in, and it is free. How it compares with password protection."
canonical: "https://www.cool.computer/blog/password-protect-html-page"
last_updated: "2026-11-20"
---
# How to share an HTML page privately, without a password

> Publish the page private and invite people by email. Only they can open it, after signing in, and it is free. How it compares with password protection.

To share an HTML page with only a few people, publish it as a private site and invite each person by email: `cool publish page.html --name my-page --visibility private`, then `cool share add my-page ana@example.com`. The page is at `https://my-page.cool.computer`, and it opens only for you and the people you invited, once they sign in. This is on the free plan.

There is no password to choose or send. That is deliberate: a password travels with the link, so anyone who gets one usually gets the other.

## Steps

1. Install `cool` and sign in. A private site belongs to an account, so this step is needed:

   ```sh
   curl -fsSL https://cool.computer/install.sh | sh
   export PATH="$HOME/.local/bin:$PATH"
   cool login
   ```

2. Publish the page private. A folder works the same way:

   ```sh
   cool publish page.html --name my-page --visibility private
   ```

3. Invite the people who should see it:

   ```sh
   cool share add my-page ana@example.com
   ```

   Ana gets an email with the address. If she already uses Cool Computers she has access at once; otherwise she gets it when she signs in or signs up with that email, within seven days.

4. Check who can open it, or take someone off the list:

   ```sh
   cool share list my-page
   cool share remove my-page ana@example.com
   ```

An agent can do all of this for you. In Claude Code, Codex or Cursor, say "publish this page privately and share it with ana@example.com".

## Invitations compared with a password

- Who gets in: a password lets in anyone who has it. An invitation lets in one email address, and the person proves it is theirs by signing in.
- Forwarding: a forwarded link and password still work. A forwarded private link shows the newcomer a page where they can ask you for access, and you decide.
- Taking access back: with a password you change it and tell everyone again. With invitations you remove one person and nobody else notices.
- Effort for the reader: a password needs no account. An invitation needs the reader to sign in once with their email.
- Cost: password protection is a paid feature on Vercel, Netlify, Surge and tiiny.host, as [our comparison](/blog/best-ways-to-share-html-file-as-link) shows with sources. Private sites and invitations are on the Cool Computers free plan.

If your readers must not be asked to sign in at all, a password is the better fit and one of those hosts will serve you well.

## Do not hide a page with JavaScript

A common trick is a script that asks for a password and then shows the content. The content is already in the file the browser downloaded, so anyone can read it with View Source. A page is private only when the server refuses to send it, which is what a private site does.

## Questions

### Can I password protect an HTML page for free?

Most hosts charge for password protection. On Cool Computers you get the same result free in a different way: the site is private and you invite people by email.

### Do the people I invite need an account?

They sign in with the email address you invited. If they have never used Cool Computers, signing in creates a free account with an emailed code.

### Can I make the page public later?

Yes. `cool share public my-page` opens it to anyone with the URL, and `cool share private my-page` closes it again. The address stays the same.

### Can invited people leave feedback?

Yes. Everyone who can open the site can pin comments and drawings to the page. See [how to get feedback on a prototype](/blog/get-feedback-on-a-prototype).

### Can I publish first and make it private afterwards?

Yes. A page published without an account is public for 24 hours. Open its claim link and sign in to keep it, run `cool login` with the same account in your terminal, then run `cool share private my-page`. The quickest account-free start is [HTML to link](/html-to-link).

### How many private sites does the free plan allow?

Free keeps up to 20 sites, private or public, sharing 5 GiB of published content. See [pricing](/pricing).
