Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
Katherine20

Password protection and unique passwords

Question

Site URL: http://www.libertyestates.co.uk

SOS!

I don't want my site available to the general public so would like some code that allows each user to use a unique code to access it. I also need to see which unique passwords have logged in/been used. Can someone tell me if that's possible? It's password protected currently but as far as I can see Squarespace only allows one password so I need to share that with multiple potential clients.

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

You can add a single site password, or a single password per page, but you cannot currently use one password per user - at least not on the Squarespace 7.0 or 7.1 platform.

There are third party products available that you can use to manage access to non-sensitive information. If you search for Squarespace and Membership you'll find a number of threads about this, for example:

 


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post
  • 0
8 minutes ago, paul2009 said:

You can add a single site password, or a single password per page, but you cannot currently use one password per user - at least not on the Squarespace 7.0 or 7.1 platform.

There are third party products available that you can use to manage access to non-sensitive information. If you search for Squarespace and Membership you'll find a number of threads about this, for example:

 

Thank you Paul, appreciate the help.

Share this post


Link to post
  • 0
Posted (edited)

(As paul2009 said below, this does not have any real password protection - I was just using it for very simple reasons that did not require real security)

I was trying to achieve a similar feature with my website and I just figured it out. I have two set passwords ("firstpw" and "secondpw"). My first password redirects to the "events" page of my website "www.mywebsite.com/events" and my second password redirects to a different events page of my website "www.mywebsite.com/all-events". 

I created a blank page and entered this in my code injection:

 

<script type="text/javascript">
var password1 = "firstpw";
var password1a = " firstpw";
var password2 = "secondpw";
var password2a = " secondpw";
var x = prompt("Please enter your password "," ");
if (x == password1 || x == password1a) {
  window.location = "events";
}
else if (x == password2 || x == password2a) {
  window.location = "all-events";
}
else {
  alert("Incorrect Password. Please refresh this webpage and try again.");
}
</script>

 

I know that you're trying to achieve unique codes for every single individual, but I thought this information might still be useful for anyone searching for a similar feature.

Edited by pv2020

Share this post


Link to post
  • 0
23 minutes ago, pv2020 said:

I was trying to achieve a similar feature with my website and I just figured it out. I have two set passwords ("firstpw" and "secondpw"). My first password redirects to the "events" page of my website "www.mywebsite.com/events" and my second password redirects to a different events page of my website "www.mywebsite.com/all-events". 

Please be aware that the code above does not provide password protection.

I don't recommend that you use this (or any code added through Code Injection) on a live webpage. It does not provide any privacy or password protection. The problem with front-end code is that anyone can view the code, note down the passwords and then use them to access the pages. The only effective password solution is one that is provided by back-end code (code that visitors cannot see). On Squarespace, this means that Squarespace must have written the securing code you cannot add it yourself.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include
I am a Squarespace Expert and Squarespace Circle Leader with a
strong reputation on the Squarespace Forum. I'm trusted by thousands of Squarespace users worldwide, including designers, freelancers, business owners and agencies. My extensions add capabilities to Squarespace websites around the globe. They include the Enquiry Form ExtensionDatepicker Extension and Age Verification ExtensionNeed a custom Squarespace extension? Tell me about the functionality you need. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...