View Full Version : Password Protect directories
Fendermz40
08-30-2006, 09:27 PM
How do I set up a page that allows someone to choose there username and password?
Basil
08-30-2006, 10:01 PM
Could you elaborate on this a little?
page1ink.
08-30-2006, 10:02 PM
The easiest way to password-protect a directory is through cPanel.
1- Locate 'Password Protect Directories' in cPanel (it's the first item in the 'new' layout)
2- Navigate to the directory you'd like to protect by clicking the folder icons. Once you've found the correct directory, click its name.
3- Check the box that says "Directory requires a password to access via the web (you must check this to activate password protection)."
4- Enter a name for the resource. This will be displayed in the password box as "Enter username and password for '[resource name]' at [web address]." Note, this name does not affect the password in any way, it just give the user a little info as to where he/she is logging in.
5- Click "Save"
6- Fill in the username and password boxes, and click "Add/modify authorised user"
7- Navigate to the web address you protected to test it out
Hope that helps you!
samholton
08-30-2006, 10:06 PM
Using htaccess doesn't allow (easily anyway) users to register and select a username/password by themselves. You will be required to manually create the users.
You are going to need to use a scripting language (PHP is my choice) and will probably want to use a database (mysql). There are lots of tutorials around that can help you get started.
--Sam
wildwillie6
09-16-2006, 05:38 AM
On a related topic:
I run a community website hosted here on bluehost.com, and I have one page that a retired volunteer regularly updates. Right now that page is hosted on a personal webspace with another ISP -- but I'd like to bring it onto the bluehost site. So here's my question:
How can I password protect the folder with my volunteer's pages on it, so that only he can edit those pages -- but the whole world can view what he saves there?
Thanks in advance, and apologies if this is trivially simple.
willie
Basil
09-16-2006, 09:00 AM
Make an FTP account for him.
Bryan
09-26-2006, 03:32 PM
I have a wordpress blog hosted here that I want to password protect. I don't want to password protect the root directory, so the blog is in a /blog/ subdirectory and I use meta http-equiv="refresh" to redirect.
I've password protected the /blog/ directory via cpanel, and everything is ALMOST right. The problem is, users are prompted for uid/pwd twice! It appears that the meta refresh technique is what's causing the issue. Is there an alternate forwarding tag that works well and doesn't "break" the back button?
thanks!
Bryan
aceofspades
09-26-2006, 03:36 PM
On a related topic:
I run a community website hosted here on bluehost.com, and I have one page that a retired volunteer regularly updates. Right now that page is hosted on a personal webspace with another ISP -- but I'd like to bring it onto the bluehost site. So here's my question:
How can I password protect the folder with my volunteer's pages on it, so that only he can edit those pages -- but the whole world can view what he saves there?
Thanks in advance, and apologies if this is trivially simple.
willie
one word, 'FTP'
Basil
09-26-2006, 10:10 PM
one word, 'FTP'
But that's three words!
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.