Questions about .htaccess code (4)
-
I’ve found 2 different examples of .htaccess code to prevent directory browsing and disable directory listing. One code uses [ Options All -Indexes ] and the other code uses [ Options -Indexes ]. Here are the examples:
Example (1)
# BEGIN Prevent Directory Browsing
Options All -Indexes
# END Prevent Directory BrowsingExample (2)
Options -IndexesMy questions are:
1. What is the difference between the 2 different codes?
2. Which code should I use to prevent directory browsing and disable directory listing?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Questions about .htaccess code (4)’ is closed to new replies.