Security Lock
Koozai > Blog > HTTP Strict Transport Security

HTTP Strict Transport Security

| 2 minutes to read

HSTS or Strict Transport Security is a standard defined in RFC 6797, by which a web server can declare to a client that it should only be accessed via HTTPS. The web server or crawler will then make all future requests over HTTPS. This will be the case even if following a link to an HTTP URL. From here the SEO Spider shows a Status Code of 307 and a Status of HSTS Policy and a Redirect Type of HSTS Policy.

This redirect is an internal representation in the SEO Spider and the browser. This differs from a 301 or a 302 as it isn’t sent by the web server as its turned around internally. When a webserver declares it should be contacted through HTTPS an expiry on this – this 307 response is ideal as it means temporary re-direct.

Protocol

The HSTS protocol is based on the server sending a single header. This is called a Strict-Transport-Security and is only sent via HTTPS as if sent via HTTP it is overlooked. The header requires 2 associated directives max-age and includeSubDomains.

Max-age is mandatory and lets the server know the number of seconds in which it can only be contacted by HTTPS. IncludeSubDomains is an optional field which if set, signals that HSTS Policy applies to any sub-domains.

Benefits

There are several benefits to using HTTP – > HTTPS Redirect. It reduces the communication over non-secure protocols, reduces load on the web server as well as improving the performance as a round trip is avoided when the HTTP link is encountered.

A site-wide HTTP->HTTPS redirect is still needed due to the Strict-Transport-Security header ignoring this unless it is sent over the HTTPS. If the first visit to your site is not via HTTPS, you still need that initial redirect to HTTPS to deliver the Strict-Transport-Security header. Considering this, you may not expect to see a 307 in the SEO Spider, but makes an HTTP request for the robots.txt file, receives a 301 to the HTTPS version of the site, then receives the Strict-Transport-Security header, so will then report 307 for the first URL crawled. If robots.txt is disabled checking the SEO spider will report a 301.

How to disable HSTS

This can be easily done by unticking: ‘Respect HSTS Policy’ configuration under ‘Configuration > Spider > Advanced’ in the SEO Spider.

The SEO Spider will ignore HSTS completely and report upon the underlying redirects and status codes.

Leave a Reply

Your email address will not be published. Required fields are marked *

Hannah Pennington

Client Services Manager

With over a decade of experience in marketing, digital strategy and sales, Hannah is a talented all-rounder marketer. Having worked with big-name brands including Bandai, Toni & Guy, the BBC and DMG, Hannah’s experience translates to being an exceptional client services manager. Spending her spare time creating something artistic or volunteering for a local charity, she’s a valuable member of the Koozai team.

Hannah Pennington Read more about Hannah Pennington
aspect-ratio
links in chain
Sophie Roberts

The Top Link Building Agencies in the UK

Sophie Roberts
@hospitalitysoph
10th Jun 2025
Digital PR Blog
aspect-ratio
Struggling Worker
Kelly-Anne Crean

Does Your Director Think You’re a Specialist in Everything?

Kelly-Anne Crean
9th Jun 2025
Marketing Strategy
aspect-ratio
Online support
Kelly-Anne Crean

Making a Case to Your Manager If You Think You Need Specialist Support

Kelly-Anne Crean
4th Jun 2025
Marketing Strategy
aspect-ratio
Fox in glasses using Google Search AI Max
Sophie Roberts

Best Paid Media Agencies in UK 2025

Sophie Roberts
@hospitalitysoph
3rd Jun 2025
PPC Blog

Digital Ideas Monthly

Sign up now and get our free monthly email. It’s filled with our favourite pieces of the news from the industry, SEO, PPC, Social Media and more. And, don’t forget – it’s free, so why haven’t you signed up already?