|
|
@ -757,11 +757,22 @@ If you have issues with files taking a long time to download, make sure you reco |
|
|
|
RewriteRule ^(tests|.git) - [F,L,NC] |
|
|
|
RewriteRule ^(tests|.git) - [F,L,NC] |
|
|
|
</Directory> |
|
|
|
</Directory> |
|
|
|
|
|
|
|
|
|
|
|
AddType application/font-woff .woff .woff2 |
|
|
|
AddType application/font-woff .woff .woff2 |
|
|
|
<IfModule mod_expires.c> |
|
|
|
<IfModule mod_expires.c> |
|
|
|
ExpiresActive On |
|
|
|
ExpiresActive On |
|
|
|
ExpiresByType application/font-woff "access plus 1 month" |
|
|
|
ExpiresByType application/font-woff "access plus 1 month" |
|
|
|
</IfModule> |
|
|
|
</IfModule> |
|
|
|
|
|
|
|
# Disallow direct access to /main/inc/lib/javascript/bigupload/files |
|
|
|
|
|
|
|
RedirectMatch 403 ^/main/inc/lib/javascript/bigupload/files |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Disallow MIME sniffing to prevent XSS from unknown/incorrect file extensions |
|
|
|
|
|
|
|
<IfModule mod_headers.c> |
|
|
|
|
|
|
|
Header always set X-Content-Type-Options nosniff |
|
|
|
|
|
|
|
</IfModule> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Files "web.config"> |
|
|
|
|
|
|
|
Require all denied |
|
|
|
|
|
|
|
</Files> |
|
|
|
</pre> |
|
|
|
</pre> |
|
|
|
|
|
|
|
|
|
|
|
<h4>Special note on sharing questions between courses</h4> |
|
|
|
<h4>Special note on sharing questions between courses</h4> |
|
|
@ -856,6 +867,10 @@ If you have issues with files taking a long time to download, make sure you reco |
|
|
|
} |
|
|
|
} |
|
|
|
location ^~ /tests/ { |
|
|
|
location ^~ /tests/ { |
|
|
|
deny all; |
|
|
|
deny all; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
location ~* /web.config$ { |
|
|
|
|
|
|
|
deny all; |
|
|
|
|
|
|
|
return 403; |
|
|
|
} |
|
|
|
} |
|
|
|
</pre> |
|
|
|
</pre> |
|
|
|
|
|
|
|
|
|
|
|