Php hide/remove X-Powered-By HTTP header
Inspecting HTTP traffic at layer 7 on a fresh http/php web server yelds some interesting results: A php header that exposes the php version.Here is http traffic as seen on the network with tcpdump:
Server: nginxHow to configure php from exposing "X-Powered-By" header:
Date: Fri, 16 Jan 2015 00:11:49 GMT
Content-Type: text/html; charset=UTF-8
Cache-Control: private, no-cache="set-cookie"
. Edit php.ini and change following value:
expose_php = off