从响应报头中取出服务器信息和PHP信息 [英] Remove server info and PHP info from response header
本文介绍了从响应报头中取出服务器信息和PHP信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何prevent 服务器信息
和 PHP资讯
来显示在响应头
How can i prevent server info
and php info
to be displayed in response header
推荐答案
有关服务器信息添加以下行apache2.conf
for server info add the following lines in apache2.conf
ServerTokens ProductOnly
ServerSignature Off
有关PHP资讯
在php.ini
依次
expose_php = off
这篇关于从响应报头中取出服务器信息和PHP信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文