crossma Posted January 10, 2004 Posted January 10, 2004 Hi When a user goes to one of my folders, it lists all of my files. I would like to keep the file list hidden, but still leave the files within my folders accessible. Hope this makes sense. Thanks in advance! Roy Quote
brian Posted January 10, 2004 Posted January 10, 2004 The easiest way to do this, is just to throw a blank index.htm page into the folder you want to protect the contents of from being listed. This way, the browser will load that page, as opposed to listing the contents. But, all the files in that directory are still available. Quote
TCH-Don Posted January 10, 2004 Posted January 10, 2004 (edited) in cpanel there is an option called no index, that will return \"you do not have permission to view this folder" or something like that. The Index Manager enables you to control how directories on your web site are displayed. If there is no index.html in a particular directory, the contents of the directory will be displayed to the browser. This is usually undesirable and can cause security issues. You can set the four different options for any directory through the Index Manager: Default System Setting - Use the system setting for your hosting machine. This is set for all directories by default. No Indexes - Do not use any indexes. Any browser that accesses this directory will see a list of all files in the directory. Standard Indexing (text only) - Prevents browsers from viewing the contents of this directory. The browser receives a 403 (Forbidden) error. This option should be used for directories that do not contain image files. Fancying Indexing (graphics) - Prevents browsers from viewing the contents of this directory. The browser receives a 403 (Forbidden) error. This option should be used for directories that do contain image files. To change index settings for a directory: Click on the Index Manager button on the home page. Navigate to the folder that you want to alter and click on its name. Click on the radio button next to the option that you want to use for this folder. Click on the Save button. The other way is to put a blank index.html file in that folder. (don't worry about the duplicates, I took care of them) Edited January 10, 2004 by TCH-Don Quote
brian Posted January 10, 2004 Posted January 10, 2004 You know, I didn't know about the Index Manager, and I been using CPanel for awhile now. Now that I know that exists, I might have to use it, but I seem to out of sheer habit create a plain index.htm in any directory until I put content into it. Comes from dealing with CVS for a bit too long. 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.