Password Protection.

User 2276240 Photo


Registered User
194 posts

Does RSD allow for password protection on specific pages within a web site. In other words the site would be open to the public, but one specific area would only be accessible to those that the rights to view that area.
User 187934 Photo


Senior Advisor
19,665 posts

Hi Jack, You'll either need to use htaccess or a php script to get that functionality. I would suggest a php login script. Google it and you'll find several.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2276240 Photo


Registered User
194 posts

Thanks Eric. The reason I ask this, is I belong to a club and our current site is hosted by GoDaddy and they required our current web master to convert the page to their new system, that is a responsive site, but they no longer support passwords. We have a specific area that is only accessible to members and not the public. I have been asked to into this issue and possibly take over and redesign the site. I would of course then use the RSD or Bootstrap for the new design.
I did a mock of of a new design a year ago using the HTML editor and used the following script to set a pasword protection for that section, but not sure it would work in the RSD or Bootstrap, but this is it.
<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "baccvette") {
alert('You Got it Right!');
window.open('members2.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
User 187934 Photo


Senior Advisor
19,665 posts

How secure do you need it? The script you posted is not secure and easily jumped around
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 515127 Photo


Registered User
116 posts

Hi Jack,

I would suggest putting the member only pages in their own folder, then securing that folder using htaccess. Coffee Cup sells a useful tool for configuring this CoffeeCup Website Access Manager.(or at least used to). I've owned it for years, haven't checked to see if it's still available lately.

For me, plan B would involve using a private folder as well, but use a PHP script and setting a session variable that gets tested when every page in the folder loads. If the right session variable is not present, then you redirect to the login page.

Plan C switch to another hosting service that does provide password coverage.
User 2276240 Photo


Registered User
194 posts

I guess it needs a good level of protection. Really my main question was, can password protection be build in to the RSD or Bootstrap should I decide to take over the page. I would not want it on any other web providers site as I already have my own site hosted here and I am happy with everything here.

I will look into the two methods mentioned the htaccess or a php script.
User 187934 Photo


Senior Advisor
19,665 posts

Does your host support parsing of php inside html?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2276240 Photo


Registered User
194 posts

Eric,that was my main question.
1. Does either Responsive Site Designer or Bootstrap support password protection on individual files within a web site
and it sounds like it does based on your original answer.
2. If so I will be hosting it on my S-Drive Account, so I hope S-Drive supports these two htaccess or a php script options.
User 187934 Photo


Senior Advisor
19,665 posts

You won't be able to use S-Drive for this.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2276240 Photo


Registered User
194 posts

So, there is no way to set a password protection on a specific file on a web site and host it on Coffee Cup. Is that what you are saying?

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.