July 1, 2026 · 2 min read

How to Password-Protect a Shared HTML Page

Sometimes a shared page should not be open to the world. Here is how to put a password on an HTML page so only the right people can open it.

A public link is perfect for some pages and wrong for others. A client draft, an internal report, or an early prototype should open for the people you choose and nobody else. Here is how to password-protect a shared HTML page so the link only works for those who have the password.

If you paste HTML and publish it as public, anyone who gets the URL can open it. That is fine for a launch page and risky for anything sensitive. Password protection keeps the same simple link, but adds a gate in front of it, so a forwarded URL alone is not enough to get in.

Protect a page in a few steps

  1. Open ShareMyPage and create your page, or open one you already shared.
  2. Set its visibility to Password protected and choose a password.
  3. Copy the link and share it. Share the password separately, through a different channel.

Now anyone opening the link sees a prompt first. Enter the password and the page renders as normal. No password, no access. You can change or remove the password later without creating a new link.

The kind of page you would gate this way, a client proposal or an internal draft, looks like this once it is live:

A client proposal shared on ShareMyPageOpen full page ↗

Other ways to limit access

Password protection is one option. Depending on who the page is for, two others may fit better:

  • Workspace keeps a page visible only to members of your team, with no password to pass around. See sharing pages with your team.
  • Public stays available for the pages you do want open to everyone.

Share confidently

The point of sharing a page is to get it in front of people, but not always all people. A password lets you send a clean link for sensitive work and stay in control of who actually sees it.

Need to share something private? Create a page on ShareMyPage and set it to password protected.