Deny Directory Listing in .htaccess
Some webmasters upload a blank index.html for dont index directories. Thats a way of listing directories. But htaccess is more easier solution for this. Just add this code to your .htaccess file
Options -Indexes
Allow directory index, remove the that code or change
Options +Indexes
If you want to list files in directory, but except some of filetypes. Example this code is ignoring zip and rar files.
IndexIgnore *.zip *.rar
You can disable directory indexing with indexignore too
Another way is changing the directory index fileIndexIgnore *
DirectoryIndex this_my_index_file.html
- Hasan Yaşar
This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.
108No Commentshttp://www.webmastersucks.com/deny-directory-listing-in-htaccess/Deny+Directory+Listing+in+.htaccess2009-06-08+18%3A25%3A16admin
No comments yet.
Sorry, the comment form is closed at this time.
Webmaster Sucks
Categories
Recent comments
Tags
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||

