Jump to content
Sign in to follow this  
crossma

How do I disable folder read

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by TCH-Don

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...