marybetht Posted September 12, 2006 Posted September 12, 2006 Hi all, I'm thinking of using Total Choice for a new site I am developing. This site needs to be password protected and not viewable to the public. Is there anyway to password protect an entire site? Thanks, MB Quote
knate5000 Posted September 12, 2006 Posted September 12, 2006 Yes you can. Just go to Password Protect Directory, Select the directory, Add users and passwords and you're done! Quote
TCH-Bruce Posted September 12, 2006 Posted September 12, 2006 Welcome to the forums Marybeth You can password protect the public_html folder but I would suggest using a PHP method instead. Quote
marybetht Posted September 12, 2006 Author Posted September 12, 2006 Thanks for the replies, much appreciated. TCH-Bruce, why would you use a PHP method instead? What does one do, if one does not have much PHP experience? Quote
TCH-Bruce Posted September 12, 2006 Posted September 12, 2006 With the PHP method you would create a page to login and store the information in a session varible. Using the cPanel method you would get a popup authentication window before any content is displayed. Either will work, I just think the PHP method looks more professional. Quote
abinidi Posted September 13, 2006 Posted September 13, 2006 What kind of site are you creating? If you are doing a blog or a CMS-type site, then pw protection is usually very easy. I have a couple of WordPress blogs that I use a site-wide password protection plug-in for. Whenever anybody hits any WordPress page, it checks to see if they have logged in. If they have, it displays the content. If they haven't, they are redirected to the login screen. So, if you are developing a site with software that already exists, there is maybe a way to do it automatically, without you having to write much, if any, code. If however, you are implementing your own solution, this suggestion won't be much help to you. Quote
marybetht Posted September 14, 2006 Author Posted September 14, 2006 Yes you can.Just go to Password Protect Directory, Select the directory, Add users and passwords and you're done! knate, doesn't seem to be working. i clicked on the box to activate password protection and added a user, but when i hit the page (homepage) i am not prompted for a username and password. did i miss something? thanks, mb Quote
marybetht Posted September 14, 2006 Author Posted September 14, 2006 knate, doesn't seem to be working. i clicked on the box to activate password protection and added a user, but when i hit the page (homepage) i am not prompted for a username and password. did i miss something? thanks, mb never mind, it works now, forgot to click "save" Quote
TCH-Bruce Posted September 14, 2006 Posted September 14, 2006 never mind, it works now, forgot to click "save" We have all done that at one time or another. 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.