{"id":57,"date":"2014-02-11T19:38:38","date_gmt":"2014-02-11T17:38:38","guid":{"rendered":"http:\/\/www.frelsisbaratta.is\/blog\/?p=57"},"modified":"2016-04-18T17:27:29","modified_gmt":"2016-04-18T15:27:29","slug":"http-strict-transport-security-hsts","status":"publish","type":"post","link":"https:\/\/www.frelsisbaratta.is\/blog\/?p=57","title":{"rendered":"HTTP Strict Transport Security (HSTS)"},"content":{"rendered":"<p>The <b>HSTS<\/b> Policy helps protect web application users against some passive (eavesdropping) and active network attacks. A man-in-the-middle attacker has a greatly reduced ability to intercept requests and responses between a user and a web application server, while the user&#8217;s browser has <b>HSTS<\/b> Policy in effect for that web application<\/p>\n<p>So what we need?<\/p>\n<p>Activate mod headers in apache:<\/p>\n<blockquote><p><code>a2enmod headers<\/code><\/p><\/blockquote>\n<p>HSTS header into VirtualHost:<\/p>\n<blockquote><p>Header always set Strict-Transport-Security &#8220;max-age=31536000 includeSubDomains&#8221;<\/p><\/blockquote>\n<p>max age set the Time in seconds and includeSubDomains set the HSTS header also into your subdomains (recommended). If you don&#8217;t want his just only let it our and close after31536000.<\/p>\n<p>Done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The HSTS Policy helps protect web application users against some passive (eavesdropping) and active network attacks. A man-in-the-middle attacker has a greatly reduced ability to intercept requests and responses between a user and a web application server, while the user&#8217;s browser has HSTS Policy in effect for that web application So what we need? Activate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-security-and-cryptography"],"_links":{"self":[{"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":3,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.frelsisbaratta.is\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}