How to password-protect a website for free

To password-protect a whole website for free, you need either a builder that includes it on its free plan, such as Ginta's Private setting, or your own server, where a .htaccess file with basic authentication does it. Most well-known builders put a site-wide password on paid plans only: Squarespace, Webflow and Carrd say so on their own help pages. Below is what each one offers, then the steps for the free ways.

We make Ginta. Every other fact comes from the company's own pages, linked, checked on 9 November 2026.

Which builders can put one password on a whole website

Whole-site password On which plan Good to know
Squarespace Yes, one password for everyone Paid sites and trial sites (there's no free plan) Visitors type it again after 4 hours; checkout doesn't work while it's on
Webflow Yes, plus page and folder passwords Paid Site plans (Basic, CMS, Business, Ecommerce), or a paid Growth, Agency or Enterprise Workspace Not on free, unhosted sites
Carrd Yes, a username and password Pro Plus ($49 a year) or higher Not on Pro Lite or Pro Standard
Wix Yes in the Wix Editor ("Password Holders") Not named on the help page The page says the feature isn't available to all users; in the Studio Editor a single password for the whole site isn't possible
WordPress.com No shared password; Private shows the site only to you and users you approve Not named on the help page Coming Soon hides a site while you build it
Ginta (ours) Yes, one password for everyone Every plan, Free too One shared password, no visitor accounts

Sources: Squarespace site-wide passwords; Webflow password protection; Carrd adding password protection and plans; Wix password protecting your site and the Studio Editor request; WordPress.com privacy settings.

Many builders can also lock single pages, or have member areas where each visitor has their own login. That's a different thing: this post is about one password in front of everything.

The free way on your own server: .htaccess

If your website runs on an Apache web server, basic authentication is built in. Apache's own authentication guide shows the steps:

  1. Make a password file with the htpasswd tool, outside the folder your website is served from: htpasswd -c /path/outside/the/site/passwords guest

  2. Put a .htaccess file in the website's folder:

    AuthType Basic
    AuthName "Private website"
    AuthUserFile "/path/outside/the/site/passwords"
    Require valid-user
    
  3. Your host has to allow it (AllowOverride AuthConfig), and the website must use https: Apache's guide warns that basic authentication sends the password unencrypted otherwise.

Visitors get the browser's own grey login box. It's free and solid, but it needs a server you control and a little comfort with files and commands.

The free way without a server: Ginta's Private setting

Every Ginta website, on every plan, has Who can see it: Public, Private or Offline.

  1. Open your website → Settings → General → Who can see it.
  2. Choose Private and type a password.
  3. Press Save.
Ginta's "Who can see it" card: Public (everyone can see it), Private selected (only people with the password), Offline (nobody, for now, nothing is deleted), a New password field with Show, the line "Visitors type it once on each device. A new password signs everyone out." and a Save button
Who can see it, in a website's Settings → General.

What visitors see: a clean password page in your website's language, on your Ginta address and on your own domain. Nothing of the website shows before the right password: no title, no share preview, no photos.

A password page on a white card: a lock icon, "This website is private", "Enter the password to see it.", a Password field and an Open button
The password page a visitor sees on a private Ginta website.

How it behaves:

It's useful for a website still being built, a wedding or family page, a team's internal page, or a client preview. If you build with Claude, Ginta's manage_site tool can switch it too.

Where Ginta is weaker

Questions

Can I password-protect a website for free?

Yes. On Ginta, Private is on every plan, Free too. On your own Apache server, a .htaccess file with basic authentication costs nothing. Squarespace, Webflow and Carrd include a site-wide password only on paid plans.

Does a password-protected website show up on Google?

Usually not. Search engines can't get past the password, and Squarespace, Wix and Ginta all say protected sites aren't crawled or indexed. Pages that were indexed before can take a while to drop out.

Can I give different people different passwords?

Not with a site-wide password: everyone uses the same one. For separate logins you need a member area with its own accounts, or WordPress.com's Private setting, where you approve each viewer.

How do I stop someone who has the old password?

Set a new password. On Ginta, a new password signs everyone out at once.

Written with AI help for Ginta, which Povilas runs; he also teaches a website-building course. The screenshots are from the real Ginta on the date above, and prices come from our pricing page.

Make a private website in a minute

Describe it, then set Private in Settings. Free plan included.

Make my website

Read next