Protecting files


#1

I have been trying to search how to protect my website files from being viewed by others. I recently noticed that my files that are in directories are not protected and can be viewed by going to the directory. Anyone have any information they can share so I can protect my files? Thanks!


#2

Are people able to view the files by going into their browsers and typing in the address bar

http://www.yoursitename.com/somedirectory/ ??

Easiest way to protect against that is to put an index.html file with something like, “NO PEEKING”, in the folders you want to hide.


#3

I’ll suggest you to use htaccess file to disable directory indexing


http://wiki.dreamhost.com/Modifying_directory_indexes