News for hackers. Stuff that matters.
Re:Ask HN: SSL certificates by junto on Monday June 15, 2015 @01:49PM (#9720857)

   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?

Re:Ask HN: SSL certificates by staunch on Monday June 15, 2015 @02:38PM (#9721134)
Using HSTS and browsers pre-loaded list of sites that are HTTPS-only prevents leakage: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

Also cookies also have a 'secure' flag.