deanavail Posted January 13, 2004 Posted January 13, 2004 Hi....Can u suggest how to go about password protect some of the pages within a site - Let's say that index page is accessible by all...but this sub page is not. 1. Place all the pages that need to be password protected in folders inside public_html and use web protect function to issue a userid and password. Distribute the userid and password to users using the site. 2. I jave a Invision forum associated with the site, is there a way to have the same specific Invision userid and password used by members in the forum to be used to access these password protected pages, if so, how is that done? Kindest Regards, Dean Quote
DarqFlare Posted January 13, 2004 Posted January 13, 2004 I would suggest option #1. As far as #2, you'd have to write up your own script and configure it to utilize the Invision login system. Quote
deanavail Posted January 13, 2004 Author Posted January 13, 2004 Thanks for the reply....any ideas of just how I would go about option 2? Quote
deanavail Posted January 13, 2004 Author Posted January 13, 2004 to test option 1 I went and added ghoststore folder under public_html and uploaded a blank index.php page to it then I wnt to cpanel/site mgm't/web protect and got this screen: I checked the box that said Folder requires a password to access via http:// then I specified for Protected Resource Name: www.ghostraders.com/ghoststore when I go to this newly created and web protected page, no login screen comes up...What did I d wrong? Thanks Quote
TCH-Rob Posted January 13, 2004 Posted January 13, 2004 Interesting, I went to my cPanel and into Web Protect. At the top it says "Please select the folder you wish to protect by clicking on its name." so I clicked my docs folder. I gave it a Protected Resource Name of something, and then created a username and password. Now when going to knifeandblade.com/docs I get a password protected folder. You didn't specify that you created the username and password. Although it is a silly question, did you? Quote
deanavail Posted January 13, 2004 Author Posted January 13, 2004 Hello Rob....it is working now after I submitted a ticket to help desk, but I still do not know what exactly did I do wrong? see my earlier thread..Thanks Quote
TCH-Rob Posted January 13, 2004 Posted January 13, 2004 I replied to the ticket as well, I agree with Rick and believe it was the resource name. I am not sure if it was because of the fact that it was exactly the same as the URL it is trying to protect of if it was just too long, more than one word. It looks like you followed the same steps as I did and your formatting of the resource name was the only difference. I would keep it one word, like the foldername from now on and see if that makes a difference. Try it again with another folder and tell me what the results are. Quote
deanavail Posted January 13, 2004 Author Posted January 13, 2004 Hi Rob..thanks for replying.. 1. I did not create a subdomain using cpanel, i just added a folder under public_html and called it member. 2. cut and pasted several pages using DW from public_html into this new folder called member. 3.specified just folder name : member in web protect on cpanel 4. It is working fine. Thanks again..two more questions: 1. why do the instructions say that you are supposed to create a subdomain in cpanel first before using web protect, see this Thread on this particular forum? am I missing out on any functionality by not having created a subdomain "member"? 2. Could I insert all my CSS, Images, & php Includes in this web protected folder to secure them, or is there a better way to prevent access to these critical files? I will also post a request in Scripting Talk forum if anyone has set up a script to use their forum registration to supply userids and passwords to this web protected folder. Quote
TCH-Rob Posted January 13, 2004 Posted January 13, 2004 Well, I didnt use a subdomain either. I just picked a folder and protected it. I am worried that placing your files like CSS and images will force the password box when a page is visited in an unsecure area that requires the CSS or image. You can place your CSS outside the public_html area to secure it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.