gpt4 book ai didi

php - 哪些文件需要进入安全目录?

转载 作者:太空宇宙 更新时间:2023-11-03 14:20:50 24 4
gpt4 key购买 nike

如果我调用一个单独的 PHP 文件,该文件依次使用 GET 和 POST 来构建 HTML 页面以及处理其他数据并将其存储在 SESSION 中,我是否需要将整个站点镜像到支持 HTTPS 的目录中,或者只做被调用的页面需要在目录中?

例如,我的计算机通过 POST 将我的名字发送到服务器,特别是 Index.php。

如果 Index.php 的地址是,数据是否安全地传送到服务器?返回的数据(尤其是 SESSION 数据)是否也安全?

如果此问题已被回答一百次,我也深表歉意,出于某种原因,我想不出合适的搜索词来找到答案。

最佳答案

do I need to mirror the entire site into an HTTPS capable directory or does only the page being called need to be in the directory?

没有。网络服务器可以设置为同时监视 http 和 https 的同一目录

If the address of Index.php is is the data secure going to the server?

如果它是在 url 中指定的 https 协议(protocol) - 那么客户端和服务器之间的所有流量(从客户端到服务器的请求以及从服务器到客户端的响应)都被加密。

Is the data returning, most specifically the SESSION data, also secure?

session 数据永远不会发送给客户端。它存储在服务器上。

关于php - 哪些文件需要进入安全目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5798615/

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