X-Powered-By: PHP/5.x.x
可以在php.ini文件中设置:
; 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.
; http://php.net/expose-php
expose_php = On #这里改成Off
这样就避免了输出类似
X-Powered-By: PHP/5.x.x
这样的信息注: 有一些php版本包会把这样的信息写进源码里面,所以改源码后重新编译即可。
session.name = phpsession 可修改其它