File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,23 @@ AddDefaultCharset utf-8
258
258
259
259
# Protect web site against clickjacking.
260
260
261
- # Options available:
262
- # SAMEORIGIN: The page can only be displayed in a frame on the same origin as the page itself.
263
- # DENY: The page cannot be displayed in a frame, regardless of the site attempting to do so.
264
- # ALLOW-FROM uri This setting will allow page to be displayed only on the specified origin.
261
+ # The example below sends the `X-Frame-Options` response header with the value
262
+ # `SAMEORIGIN`, informing browsers not to display the web page content in any
263
+ # frame from a page of different origin than the content itself.
265
264
266
- # More info: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options
265
+ # This might not be the best setting for everyone. You should read about the
266
+ # other two possible values for `X-Frame-Options`: `DENY` and `ALLOW-FROM`.
267
+ # http://tools.ietf.org/html/rfc7034#section-2.1.
268
+
269
+ # http://tools.ietf.org/html/rfc7034
270
+ # http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx
271
+ # https://www.owasp.org/index.php/Clickjacking
267
272
268
273
# <IfModule mod_headers.c>
269
274
# Header set X-Frame-Options "SAMEORIGIN"
275
+ # <FilesMatch "\.(appcache|crx|css|cur|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svgz?|ttf|vcf|webapp|webm|webp|woff|xml|xpi)$">
276
+ # Header unset X-Frame-Options
277
+ # </FilesMatch>
270
278
# </IfModule>
271
279
272
280
# ------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1
1
### HEAD
2
2
3
+ * Add example on how to provide clickjacking protection ([ #8 ] ( https://github.com/h5bp/server-configs-apache/issues/8 ) ).
3
4
* Add example on how to reduce MIME type security risks ([ #8 ] ( https://github.com/h5bp/server-configs-apache/issues/8 ) ).
4
5
* Add configs for cursor images (` .cur ` ).
5
6
* Fix backup and source file blocking for Apache v2.3+ ([ #5 ] ( https://github.com/h5bp/server-configs-apache/issues/5 ) ).
You can’t perform that action at this time.
0 commit comments