当前位置 : 李杰的流水账 > 技术 > linux

隐藏(关闭) X-Powered-By 信息

要去掉  X-Powered-By: PHP/5.2.1 则修改 php.ini 文件 设置 expose_php = Off 说明 Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header).  It is no security threat in any way, but it makes it possible to determine whether you use PHP on your server or not. 决定服务器上是否暴露安装有PHP, (例如:把这些信息加到Web服务器头响应)。这是不安全的。 但能确定你的服务器时候运行着PHP。 意思就是打开的话可以告诉其他人这台服务器可以运行PHP,但不一定安全,可以关掉

内容列表