gpt4 book ai didi

php - 如何制作安全登录页面 (https)

转载 作者:太空宇宙 更新时间:2023-11-03 13:47:31 26 4
gpt4 key购买 nike

我想知道如何以安全的方式提供登录页面。由于某些原因,我无法通过 https 提供所有页面,所以我想这样做:我的网页网址是http://www.example.com , 但登录和注册子域是 https://ssl.example.com

我当然有ssl证书,只是不知道怎么弄这个登录机制。

以这种方式工作的示例页面是 ebay.com,在主页和登录页面中查看 url。

最佳答案

您的问题有already been answered here .

HTTPS is absolutely vital in maintaining a secure connection between a website and a browser. Public wifi networks put users at risk, and when used correctly, HTTPS is the only tool that can protect user accounts from this vulnerability.

即使您与服务器 B 建立了安全登录并且用户在服务器 A 上浏览,通过类似 OAuth 的东西,攻击者需要做的就是拦截他们的 OAuth token 并冒充最终用户。

Just use HTTPS .如果您的虚拟主机阻止您这样做,请获得便宜的 VPS 并控制您的网站。如果您的广告网络阻止您这样做,请向他们施加压力以支持 HTTPS。 Adsense 已经这样做了。

关于php - 如何制作安全登录页面 (https),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32945504/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com