skip to Main Content

I’m building Web site, and wondering how I can assure that it is secure if first request is made by HTTP. HSTS do this but partially.

I think not opening HTTP port solve this problem. But is this standard? My site is B to B, so SEO is not problem. Users directly access my addresses, but assume possible with HTTP. Any idea?

2

Answers


  1. I would suggest a firewall redirect rule that changes http to https.

    Login or Signup to reply.
  2. Short answer :

    It will protect your visitors even for the first visit thanks to the preload : browsers will know your domain must be contacted only with https even before the first contact (it will be in their source code, see https://github.com/ssllabs/research/wiki/Preload-Lists ).

    (and of course, keep your 301 redirect http=>https)

    Why closing the port 80 is not a good idea ? Let’s see the two options :

    Options with HSTS and the port 80 closed :

    In case of an attack :

    Options with HSTS and the port 80 open :

    In case of an attack :

    As you can see, opening the port 80 to answer a 301 redirect to https can improve a little the security (and closing it will not improve it, and will probably confused your visitors)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search