3 ms·
Besides that, you might want to add a 301 URL redirect to your web server to force people to only use SSL and avoid the fatal mistake of someone forgettin
by junto 11y ago
Besides that, you might want to add a 301 URL redirect to
your web server to force people to only use SSL and avoid
the fatal mistake of someone forgetting to type http_s
Is there any other way to do this. If a user makes a non SSL request to my server they have potentially already leaked information in that request, especially if it is a post. Cookies etc are all exposed.
Is there a best practice to prevent users making this first incorrect request in the first place?
- staunch 11y agoUsing HSTS and browsers pre-loaded list of sites that are HTTPS-only prevents leakage: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security Also cookies also have a 'secure' flag.