Thread: [chmod] Help!
View Single Post
Old 10-08-2005, 11:19 AM  
tw1st3d
Confirmed User
 
Join Date: Aug 2005
Posts: 106
Quote:
Originally Posted by LBBV
First of all, the reason you couldn't see your files when you did a "chmod 666" is that directories have to be executable or you will not be able to enter or access any files in them.

If I understand what you're requesting, you want the directory to be accessible to the web, but you want it so that you have to know the name of the file in order to read it. If that's the case, do this.

1. Set your directory to 755 (if you haven't already fixed that problem)

2. put a blank index.html in the directory (NOT Index.html...keep it all lower case)

3. As an added measure, as recommended above, upload (IN ASCII MODE) a .htaccess file in the directory (that's DOT htaccess) and in that file, put the following lines in it (use a text editor like notepad to create this file. Do NOT use Word or something similar)

Options -Indexes
DirectoryIndex index.html index.htm

Now, no one can view the files in that directory unless they know exactly what the file name is.

-- Bill


Thanks you so much!.. the problem was that I put index.html with a capital letter!
tw1st3d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote