如果我从HTTP URL向HTTPS URL提交表单,表单数据是否会被加密? [英] If I submit a form to a HTTPS URL from a HTTP URL, will the form data be encrypted?

查看:235
本文介绍了如果我从HTTP URL向HTTPS URL提交表单,表单数据是否会被加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将加密我网站的登录表单,我想知道登录用户是否需要登录HTTPS网址登录表单,或者表单数据是否可以从HTTP网址发布到HTTPS网址并且仍然是加密的?

I'm about to encrypt my website's login form and I was wondering if the user logging in needs to land on the login form at a HTTPS URL, or whether the form data can be posted to a HTTPS url from a HTTP url and still be encrypted?

推荐答案

是的,它会被加密。提交表单的页面 的网址无关紧要,只有表单目标网址。

Yes, it will be encrypted. The URL of the page from which the form is submitted doesn't matter, only the form target URL.

有一点需要注意,尽管,是否有些浏览器(至少IE 6)会在从不安全的页面提交安全表单时警告用户。为什么需要警告以及用户应该做些什么,我不知道,但它可能会让人感到困惑(如果他们懒得阅读警告)。

One thing to note, though, is that some browsers (IE 6, at least) will warn the user when submitting a secure form from an insecure page. Why that requires a warning and what the user is supposed to do about it, I have no idea, but it can confuse people (if they bother to read the warning).

这篇关于如果我从HTTP URL向HTTPS URL提交表单,表单数据是否会被加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆