Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle committed Jul 22, 2023
1 parent 1201eef commit e8b69bd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Kirby .htaccess
# revision 2022-09-15
# revision 2023-07-22

# rewrite rules
<IfModule mod_rewrite.c>
Expand Down Expand Up @@ -55,3 +55,13 @@ AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

# set security headers in all responses
<IfModule mod_headers.c>

# serve files as plain text if the actual content type is not known
# (hardens against attacks from malicious file uploads)
Header set Content-Type "text/plain" "expr=-z %{CONTENT_TYPE}"
Header set X-Content-Type-Options "nosniff"

</IfModule>

0 comments on commit e8b69bd

Please sign in to comment.