Website Building » Squarespace » How Do I Password Protect a Page in Squarespace?

How Do I Password Protect a Page in Squarespace?

Last updated on December 27, 2022 @ 6:42 pm

There are a few different ways to password protect a page in Squarespace. One way is to use the Page Password Protection feature in the Site Manager. To do this, go to the Pages section and click on the page you want to password protect. Then, click the Security tab and check the “Password Protect This Page” box.

Enter a password in the “Password” field and click Save.

Another way to password protect a page is to use the Password Protection feature in the Design panel. To do this, go to the Design panel and click on the Page Password Protection tab. Then, check the “Enable Password Protection” box and enter a password in the “Password” field. Click Save.

You can also password protect a page by adding a code block to your page and adding the following code:

$(function() {
  $('#password-protect').on('submit', function(e) {
    e.preventDefault();
    var password = $('#password').val();
    if (password == 'password') {
      $('#content').show();
      $('#password-protect').hide();
    } else {
      alert('Incorrect password');
});

Replace "password" with your actual password.

PRO TIP: When creating a password for a page on Squarespace, be sure to use a strong password that is difficult to guess. A good password should be at least 8 characters long and include a mix of uppercase and lowercase letters, numbers, and symbols. Avoid using easily guessed words or personal information in your password.
Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.