Can I enable HSTS?

The HTTP Strict-Transport-Security response header (often abbreviated as HSTS) lets a website tell browsers that it should only be accessed using HTTPS, instead of using HTTP.

You can enable this by adding the following to your .htaccess file:

Header set Strict-Transport-Security “max-age=5184000; includeSubDomains; preload”

The 'max-age' is the time in days you want the warning to be cached for, the above would set that to a default of 60 days.

Be aware that if you set this header, the site will only ever load over HTTPS.

For instance, while people can usually click through a browser warning about a name mismatch or expired certificate, browsers do not allow such a click through for hostnames with an active HSTS header. It also means that if they ever move the site to a provider that doesn't support HSTS or if they wish to remove the certificate, they cannot do so and their site will be unavailable.

  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

What version of Windows do you run on the Windows servers?

Our Windows servers run using Windows 2016 R. These servers are based on the same specification...

Providing Access Logs to a Third-Party provider

Some third-party providers may request access logs for investigation (i.e. Google AdWords). You...

403 Response on POST Request

As part of our Web Application Firewall we occasionally filter invalid POST requests when we...

Does your Windows hosting support .NET Core?

Windows hosting doesn't support the .NET Core framework. However, if you would like to...

Can I block visitors by country?

You can block access to your websites by country or IP address.  Head to Hostrite > Manage...

Powered by WHMCompleteSolution