HSTS 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

Added ability to opt out of applying checks to localhost and instructions document.

Install-Package HSTS -Version 1.0.1
dotnet add package HSTS --version 1.0.1
<PackageReference Include="HSTS" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HSTS --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


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.

Version History

Version Downloads Last updated
1.0.1 2,289 3/18/2011
1.0.0 1,029 3/10/2011