HSTS 1.0.1
dotnet add package HSTS --version 1.0.1
NuGet\Install-Package HSTS -Version 1.0.1
<PackageReference Include="HSTS" Version="1.0.1" />
paket add HSTS --version 1.0.1
#r "nuget: HSTS, 1.0.1"
// Install HSTS as a Cake Addin #addin nuget:?package=HSTS&version=1.0.1 // Install HSTS as a Cake Tool #tool nuget:?package=HSTS&version=1.0.1
HTTP Strict Transport Security (HSTS) describes a method for a web site to tell client browsers that they should only interact with it over secure transport, i.e. TLS Whilst there have been browser plugins which support this draft specification, support for HSTS was announced for v4 of Google Chrome for v4 of Mozilla Firefox. Hopefully Microsoft Internet Explorer 9 and Opera will also adopt this.
Why is it important? Some attacks mean that TLS is vulnerable if there are redirects from non-TLS (e.g. http://www.example.com/) to TLS (https://www.example.com/) content. And if part, or all, of your web site is only meant to be accessed over SSL, HSTS should be implemented now, ready for mainstream adoption.
Further details are provided on the W3C page at Strict Transport Security (STS) and the draft IETF specification is at HTTP Strict Transport Security (HSTS).
More information can be found in Security Now podcast 262. http://media.grc.com/sn/SN-262.mp3
UPDATES:
Added ability to opt out of applying checks to localhost and instructions document.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.