Fencing Your SSL Errors With HSTS
scantosecure.com
scantosecure.com
# Enable Strict-Transport-Security for one year
add_header Strict-Transport-Security max-age=31556926;Edit: also, because of HSTS I can only visit your "secure" site and can no longer get to your marketing page to see what it is you do.
config.force_ssl = trueDoesn't this just add more complexity to a problem that is not that hard to solve?
Imagine you're using my WiFi connection. Without HSTS, I could redirect you to a fake http://www.facebook.com to steal your login credentials if you do not notice the login page is not served over HTTPS (and let's be realistic: most non-technical people won't notice something that's supposed to be there, but is not).