Password Protection|
DeployPages Team
/2026-05-28/8 min read

Password-Protected Static Sites: How to Share Private Previews Without Building Auth

A practical guide to using password protection for static site previews, client reviews, internal docs, portfolios, and staged launches without confusing it with full application authentication.

Not every static site is ready for the public web the moment it is uploaded.

A client preview may still have draft copy. A portfolio case study may include work that should only be seen by one recruiter. Internal docs may be useful to a team but strange in search results. A launch page may need stakeholder review before the domain goes live.

That is the space where password protection is useful. It is not a full identity system. It is a shared gate for static content that needs a small amount of friction before someone can view it.

A static website preview behind a password gate before it becomes public

What password protection is good for

Static sites often move through a private middle stage before they become public. The site is built. The files exist. The link works. But the audience is still controlled.

Use caseWhy a password gate helps
Client reviewStakeholders can inspect a real URL before the public launch.
Internal docsA team can share static notes, handbooks, or project pages without opening them to everyone.
Portfolio reviewSelected case studies can be shared privately with recruiters, clients, or interviewers.
Student or team projectReviewers can open the project while the group decides what should remain public.
Campaign stagingCopy, tracking links, assets, and mobile layout can be checked before promotion.
PDF or asset bundleA static page can wrap documents, files, or reference materials behind one access step.

The point is not secrecy against a determined attacker. The point is to avoid accidental public circulation while people review, approve, or refine the site.

Password gate, noindex, or full authentication?

These are different tools. Treating them as the same thing creates bad expectations.

ToolWhat it doesWhat it does not do
Password protectionBlocks casual access with a shared password before the site is served.Does not create per-user accounts, roles, audit trails, or SSO.
noindexAsks search engines not to show a page in search results.Does not stop someone with the URL from opening the page.
robots.txtGives crawler instructions for paths.Is public and should not be treated as protection.
Full app authenticationManages users, sessions, permissions, and identity flows.Requires application logic, not just static file hosting.
Network access controlRestricts access by identity provider, device, IP, or organization policy.Is heavier than most client previews or small static projects need.

Google documents noindex as an indexing control. It is useful when a page should not appear in search, but it is not a privacy boundary. Cloudflare Access and Vercel Deployment Protection show the other end of the spectrum: stronger access systems for applications and deployments. A simple password gate sits in the middle.

Protect the whole static experience, not just the homepage

A static site is more than index.html.

If only the homepage is gated but images, scripts, PDFs, or deep links remain public, the preview can still leak. A useful password-protected static site should put the access check in front of the published experience, including the files that make the page meaningful.

Before sharing a protected link, check these paths:

Path typeWhat to verify
HomepageThe first visit asks for the password.
Deep linksProject pages, docs pages, or campaign subpaths also require access.
AssetsImages, PDFs, scripts, and downloads are not exposed through obvious direct links.
FormsIf a form exists, it should behave correctly after access is granted.
Error pages404 or fallback pages should not reveal sensitive copy or file names.

This is especially important for portfolios and client work. A redacted homepage does not help much if the unreleased screenshots are still reachable from /assets/client-redesign-final.png.

Choose the right password workflow

Shared passwords are operationally simple, but they still need discipline.

SituationPractical habit
One short review cycleUse one strong shared password and rotate it after review.
Multiple client teamsUse separate projects or separate review links when the audiences should not overlap.
Link was forwarded too widelyChange the password and send the new one only to the intended reviewers.
Project becomes publicTurn off password protection after final approval and domain launch.
Work remains sensitiveKeep the public page redacted and share details only with approved viewers.

Do not use a memorable joke password for a client preview. Use something long enough that it will not be guessed, and send it through a channel that matches the sensitivity of the work.

Where password protection is not enough

Password protection is useful because it is lightweight. That is also its limit.

Use a proper application authentication model when you need:

  • Per-user accounts or invitations.
  • Different permissions for different viewers.
  • SSO through Google Workspace, Microsoft Entra, Okta, or another identity provider.
  • Audit logs showing exactly who viewed what.
  • Legal, compliance, or contractual access requirements.
  • Revocation for one person without changing access for everyone.
  • Sensitive customer data, payment data, private health data, or regulated records.

For a static preview, a shared password is often the right amount of control. For a customer portal, internal system, or regulated workflow, it is not.

Common mistakes with protected static previews

Most problems are not dramatic. They are small operational misses.

MistakeBetter approach
Sending the public link before protection is enabledTurn on the gate first, then test the link in a private browser window.
Forgetting deep linksOpen project pages, docs pages, assets, and PDFs directly.
Using one password foreverRotate after review cycles, launches, or accidental forwarding.
Treating noindex as privacyUse noindex for search behavior, not access control.
Publishing confidential detailsRedact sensitive names, metrics, screenshots, and private paths before upload.
Keeping the gate after launch by accidentDecide whether the final site should be public, protected, or split into public and private versions.

A protected preview still deserves the same content review as a public site. Passwords reduce accidental exposure; they do not make careless publishing harmless.

How this fits static deployment

Password protection works best when it is part of the deployment workflow rather than something bolted on later.

A practical sequence looks like this:

  1. Build or export the static site.
  2. Upload the folder, ZIP, HTML output, framework build, portfolio, or PDF-backed page.
  3. Enable password protection before sharing the preview.
  4. Send the link and password to reviewers.
  5. Fix copy, files, mobile layout, and asset issues.
  6. Rotate the password if the audience changes.
  7. Remove protection or keep it on when the final publishing decision is made.

This keeps review close to the real site. Reviewers see the same routes, assets, and responsive behavior that the public version will use later.

How DeployPages handles this use case

DeployPages is built around static publishing, so password protection is designed for static previews and private sharing rather than backend auth.

You can publish a static folder, ZIP, HTML project, portfolio, docs export, AI-generated site, or page that includes PDF assets, then enable password protection from the project controls when the current workspace plan includes it. Visitors must enter the project password before they can view the published site. The same project can also use analytics, custom domains, instant rollback, and CLI deploys.

That makes the protected preview path straightforward: upload the site, gate it while people review, then decide whether the final version should stay private or move to a public domain.

Pre-share checklist

Before sending a password-protected static site:

  1. Open the link in a private browser window and confirm the password screen appears.
  2. Test a deep link, not just the homepage.
  3. Try direct links to important PDFs, images, scripts, and downloads.
  4. Remove confidential names, private metrics, internal comments, and draft paths.
  5. Use a strong shared password and store it where the team can rotate it.
  6. Share the password separately from the link if the work is sensitive.
  7. Decide when protection should be removed, rotated, or kept.
  8. Keep a rollback path before replacing a reviewed version.

Password protection is not there to make a static site complicated. It is there to make the private stage less risky while the work is still being judged, corrected, and approved.

Useful references

#password protected static site#private website preview#static site access control#client preview link

Ready to publish your site?

Upload static files, get an HTTPS link, and add domains or rollback when the project needs them.

Start deploying free