You could always make a fake index.html/php whatever and throw it into the directories you want blocked off, it is a cheap and flawed method, but it turns back most people. Another method is to password protect directories or set up redirection. It depends on your web server, be it the Apache web server, a Microsoft one, or some other httpd.
If it is running on Apache, you can either change the Apache settings or use a .htaccess file in the web root directory to disallow directory listings:
Code:
Options -Indexes
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
If they are just include files you can also throw in a "deny from all" into the htaccess to make the files inaccessible even if someone knows the filename (or could guess it).
If they are just include files you can also throw in a "deny from all" into the htaccess to make the files inaccessible even if someone knows the filename (or could guess it).
Good idea, I forgot about good old ACLs, which is odd, considering I just spent two years in a school learning about them every other week in a networking course.
Bookmarks