Protecting Directories

David

Madly Diligent
Joined
Jul 13, 2009
Messages
7,756
Reaction score
14
FP$
696
Hello,

Is there a way to protect directories, so people can't see the folders and files etc?
 
Sure David,

You can add an index.html to each directory so that when a visitor enters that folder they will be showed the text you added to the index.html file.

You can also by a .htaccess file, but that requires Apache and Shell access.
 
If you are using cpanel, do the following -

Under "Security" click "Password Protect Directories", select the directory you want to stop people viewing and set a username and password.

Setting up a index page is useless if they know the file names of files already in that directory.
 
Back
Top Bottom