Skip to content

Commit

Permalink
Update to Apache Server Configs v2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusazzi committed May 6, 2014
1 parent ef45dc4 commit 15864dd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/templates/htaccess
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Apache Server Configs v2.2.0 | MIT License
# Apache Server Configs v2.3.0 | MIT License
# https://github.com/h5bp/server-configs-apache

# (!) Using `.htaccess` files slows down Apache, therefore, if you have access
Expand Down Expand Up @@ -378,22 +378,24 @@ AddDefaultCharset utf-8
</FilesMatch>

# ------------------------------------------------------------------------------
# | Reducing MIME-type security risks |
# | Reducing MIME type security risks |
# ------------------------------------------------------------------------------

# Prevent some browsers from MIME-sniffing the response.

# This reduces exposure to drive-by download attacks and should be enable
# especially if the web server is serving user uploaded content, content
# that could potentially be treated by the browser as executable.
# This reduces exposure to drive-by download attacks and cross-origin data
# leaks, and should be left uncommented, especially if the web server is
# serving user-uploaded content or content that could potentially be treated
# as executable by the browser.

# http://www.slideshare.net/hasegawayosuke/owasp-hasegawa
# http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-v-comprehensive-protection.aspx
# http://msdn.microsoft.com/en-us/library/ie/gg622941.aspx
# http://mimesniff.spec.whatwg.org/

# <IfModule mod_headers.c>
# Header set X-Content-Type-Options "nosniff"
# </IfModule>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
</IfModule>

# ------------------------------------------------------------------------------
# | Reflected Cross-Site Scripting (XSS) attacks |
Expand Down

0 comments on commit 15864dd

Please sign in to comment.