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:

Code:
Server: nginx
Date: Fri, 16 Jan 2015 00:11:49 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.5.20
Cache-Control: private, no-cache=”set-cookie”
Expires: 0
Pragma: no-cache
Content-Encoding: gzip

How to configure php from exposing “X-Powered-By” header:. Edit php.ini and change following value:

Code:
expose_php = off

Check Also

Menggali Lebih Dalam tentang Dogmatis: Apa Itu dan Bagaimana Ini Memengaruhi Pikiran Manusia?

Dogmatis adalah istilah yang sering digunakan untuk menggambarkan sikap atau keyakinan yang keras kepala dan …