File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,19 @@ TraceEnable Off
52
52
# If you use version control systems in your document root, you should
53
53
# probably deny access to their directories. For example, for subversion:
54
54
#
55
- #<DirectoryMatch "/\.svn">
56
- # Require all denied
57
- #</DirectoryMatch>
55
+ <DirectoryMatch "/\.svn" >
56
+ Require all denied
57
+ </DirectoryMatch >
58
+ <DirectoryMatch "/\.git" >
59
+ Require all denied
60
+ </DirectoryMatch >
58
61
59
62
#
60
63
# Setting this header will prevent MSIE from interpreting files as something
61
64
# else than declared by the content type in the HTTP headers.
62
65
# Requires mod_headers to be enabled.
63
66
#
64
- # Header set X-Content-Type-Options: "nosniff"
67
+ Header set X-Content-Type-Options : "nosniff"
65
68
66
69
#
67
70
# Setting this header will prevent other sites from embedding pages from this
@@ -70,5 +73,10 @@ TraceEnable Off
70
73
#
71
74
#Header set X-Frame-Options: "sameorigin"
72
75
76
+ # Adding X-XSS-Protection per recommendation of MDN
77
+ Header set X-XSS-Protection: "1 ; mode=block"
78
+
79
+ # Adding CSP, still need unsafe-inline for now gitweb timezone handling
80
+ Header set Content-Security-Policy: "default-src 'self' 'unsafe-inline'"
73
81
74
82
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
You can’t perform that action at this time.
0 commit comments