Skip to content

Commit

Permalink
Security: Prevent directory indexing globally (no reason to enable it…
Browse files Browse the repository at this point in the history
… for web requests) - refs BT#22085
  • Loading branch information
ywarnier committed Oct 8, 2024
1 parent 1d91665 commit 408cdb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,9 @@ RedirectMatch 403 ^/main/inc/lib/javascript/bigupload/files
</IfModule>

<Files "web.config">
Require all denied
</Files>
Require all denied
</Files>

<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
4 changes: 4 additions & 0 deletions documentation/installation_guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ <h3>Apache RewriteRules</h3>
<Files "web.config">
Require all denied
</Files>
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>
</pre>

<h4>Special note on sharing questions between courses</h4>
Expand Down Expand Up @@ -872,6 +875,7 @@ <h3>Nginx</h3>
deny all;
return 403;
}
autoindex off;
</pre>

<h3>Apple on OS X servers</h3>
Expand Down

0 comments on commit 408cdb4

Please sign in to comment.