Page passwords

Prevent visitors from accessing a specific page unless they have a password.

Last updated January 24, 2025

You can hide individual pages behind passwords in page settings to prevent them from being publicly accessible. This is a great way to keep some pages on your site public while reserving other content for specific visitors.

Password-protected pages display a lock icon next to their titles in the pages panel.

Everyone uses the same password to access a password-protected page. It's not possible to create unique passwords for different people.

Tip

To give people individual viewing or editing permissions for your site, invite them as contributors. To create gated content that only some visitors can access, add Member Sites to your site.

Watch a video

Before you begin

Set a page password

To set a page password:

  1. Open the Pages panel.
  2. In the Pages panel, click a page to protect with a password.
  3. Click the to the right of the page title to open page settings.
  4. Scroll down to Password and enter a password in the field.
  5. Click Save.

After you've saved your password, a lock icon displays next to the page title in the pages panel.

KB Guide Image

To prevent visitors from stumbling onto a locked page, hide the pages from your navigation menus by moving them into the Not linked section.

Test your password

Open the page in a private browser window to test how it appears to visitors. At the lock screen, enter the page password, then press Enter or click the arrow to access the page.

The gray lock screen pictured below displays by default. Use the lock screen panel to customize the design.

screenshot_of_default_lock_screen.jpg

screenshot_of_default_lock_screen.jpg

After visitors enter a page password, the session expires after four hours and prompts them to re-enter the password. It's not possible to "log out" of a session.

Change or remove the password

To change or remove the password:

  1. Open the Pages panel.
  2. In the Pages panel, click the page with the password.
  3. Click the Settings icon next to the page's title to open page settings.
  4. Scroll down to Password.
  5. Enter a new password, or remove the password by highlighting the text and pressing Delete.
  6. Click Save.

Passwords and search engines

To hide a new page while you're building it, we recommend setting a password before you add any content. This tells search engines not to index the page at all.

If you're hiding an existing page, setting a password only prevents search engines from indexing it further. This means that search engines may have already indexed this page, and this content could appear in search results.

After you add a page password, the page won't be accessible to search engines. It will eventually stop appearing in search results.

Setting a page password for collection pages also prevents search engines from indexing its individual collection items.

Note

If you upload a file to a page before setting a password, the file may continue to be indexed after setting the password. To protect files from indexing, remove them and re-upload after the page password is set.

Collection pages

When you password-protect a collection page, such as blog pages, events pages, portfolio pages, or store pages, it also password-protects the page's individual collection items.

You can still display items from password-protected collection pages on other pages using summary blocks and archive blocks, but visitors won't be able to click through to access the item without the password.

It's not possible to password-protect collection items individually or to apply different passwords to different items.

Index pages (version 7.0)

You can password-protect the main index in its page settings.

Whether a password-protected sub-page displays in the index depends on the index style. To learn more, visit Index pages in version 7.0.

password-protecting-an-index.png

Troubleshooting page password issues

For page passwords:

  • If visitors are prompted to enter a password after you remove a page password, check if your homepage has a site-wide password, and disable it.
  • Some password managers or browser extensions (like LastPass) can cause passwords to auto-fill in your page settings. If this is happening, disable the extension before editing your page password.
  • If you paste the password text into the field from elsewhere, it may keep some text formatting that causes it to be incorrect. We recommend pasting it as plain text or typing the password manually.
Footer Image
  • Get help from our community

  • Get help from our community on advanced customizations.

  • Hire a Squarespace Expert

  • Stand out online with the help of an experienced designer or developer.