Php hide/remove X-Powered-By HTTP header

By On Saturday, April 9th, 2016 Categories : Artikel
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: 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:

expose_php = off
Advertisement (Dibawah ini adalah Iklan)

The Brand New Creature.docx Detail 368683

Archaeology and the Social History of Ships.docx Detail 750490

Facts about Planet Earth.ePub Detail 362070

Nude New Russian Photography.pdf Detail 371008

Dive Sites of the Red Detail 995591

Cold Hardiness in Plants Molecular Genetics Cell Biology and Physiology.docx Detail 2061521

Introduction to Film A Companion Reader.pdf Detail 6109251

Deutsches Ottocento Die Deutsche Wahrnehmung Italiens Im Risorgimento.ePub Detail 3659013

Fly with Poetry An ABC of Poetry.pdf Detail 560159

Single in Detail 661238