Website - Folder Directory List

realmike15

New Member
My boss asked me to create a password protected folder on our website. I've gotten that far, but he also said he doesn't want to have to send direct links to our customer every time we update it. So essentially he wants a directory of the files in that folder, like you see on some websites.

What I need it to do is when someone goes to
Ex: www.website.com/folder1/

They see a directory of all the files in that folder.
 
Last edited:
If you google how to edit the .htaccess file in Apache, it will show you how to password protect folders.
 
If you google how to edit the .htaccess file in Apache, it will show you how to password protect folders.

Hah, already did that. I need to know how to publicly show the directory when someone types the address into their browser. Need people to be able to see all the files in that directory, just not download them unless they have the proper username and password.
 
Hah, already did that. I need to know how to publicly show the directory when someone types the address into their browser. Need people to be able to see all the files in that directory, just not download them unless they have the proper username and password.

I am not sure you can do that with out running some sort of ACLs, but read access allows you to copy. POSIX permissions dictate anyone with read access can copy files to their destination, or a destination they can write to.

Why not just password protect the whole directory?

http://www.thesitewizard.com/apache/password-protect-directory.shtml
 
I am not sure you can do that with out running some sort of ACLs, but read access allows you to copy. POSIX permissions dictate anyone with read access can copy files to their destination, or a destination they can write to.

Why not just password protect the whole directory?

http://www.thesitewizard.com/apache/password-protect-directory.shtml

I have the htaccess file there, but when you go to look at the directory... it wants to download the htaccess file, instead of showing the directory
 
I have the htaccess file there, but when you go to look at the directory... it wants to download the htaccess file, instead of showing the directory

did you put a dot in front of the file? Also, is this a Linux box you are hosting it on?
 
did you put a dot in front of the file? Also, is this a Linux box you are hosting it on?

There is a dot in front of the file. I'm not sure about the server, it's not mine. This is provided through Cavalier telephone company. The password works fine, it even asks for the password when you go to http://www.website.com/folder1/

But, it wants to download the htaccess file when you put in the password, rather than showing a directory listing. That's basically where I'm stuck.
 
There is a dot in front of the file. I'm not sure about the server, it's not mine. This is provided through Cavalier telephone company. The password works fine, it even asks for the password when you go to http://www.website.com/folder1/

But, it wants to download the htaccess file when you put in the password, rather than showing a directory listing. That's basically where I'm stuck.

what did you create the file in?

Do you have telnet/ssh access to the server?

Find out what platform it is in, have to assume it is some flavor or Linux, but I'd like to know.

After you upload the file you need to use the htpasswd command to set the access, this only works if you are using Linux.
 
what did you create the file in?

Do you have telnet/ssh access to the server?

Find out what platform it is in, have to assume it is some flavor or Linux, but I'd like to know.

After you upload the file you need to use the htpasswd command to set the access, this only works if you are using Linux.

The file was created through Cavalier in the options menu. I'm confident I could go in and change something if it has to be changed, but I don't know what would need to be done.

I haven't used Telnet in a long time, I have no idea if this server is set up for that.

Trying to find out what type of system it is running on. Is there anything located on the server that would tell me? This web space came with our internet connection so there's not a lot of information.

It does have the htpasswd file, that must have been created by Cavalier when I set the folder to be password protected.

Sorry, I'm not very advanced with this stuff. I've only done basic HTML coding/Java coding. Any help is appreciated though.
 
Well, see if you can ssh into it, because you will need to set the .htaccess file using the htpasswd command. It is not hard, but you would need command line access.
 
Back
Top