Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

Remove "X-Powered-By: PHP/5.2.11" from HTTP headers of your web server
https://forum.ivorde.com/remove-x-powered-by-php-5-2-11-from-http-headers-of-your-web-server-t68.html
Page 1 of 1

Author:  debuser [ Wed Mar 24, 2010 6:49 am ]
Post subject:  Remove "X-Powered-By: PHP/5.2.11" from HTTP headers of your web server

HTTP 1.1 protocol, as most of the other protocol, uses headers for the communication between client (usually browser) and server.

An example of the header looks like:
Code:
HTTP/1.1 200 OK
Date: Wed, 24 Mar 2010 04:03:41 GMT
Server: Apache/2.2.11 (Unix) DAV/2 PHP/5.2.11 with Suhosin-Patch mod_ssl/2.2.15 OpenSSL/0.9.8k
X-Powered-By: PHP/5.2.11
Set-Cookie: phpbb3_qxggi_u=1; expires=Thu, 24-Mar-2011 04:03:41 GMT; path=/; domain=forum.ivorde.ro; HttpOnly
Set-Cookie: phpbb3_qxggi_k=; expires=Thu, 24-Mar-2011 04:03:41 GMT; path=/; domain=forum.ivorde.ro; HttpOnly
Set-Cookie: phpbb3_qxggi_sid=514ad39b91e1e29bcb1a7553dcb8f4a7; expires=Thu, 24-Mar-2011 04:03:41 GMT; path=/; domain=forum.ivorde.ro; HttpOnly
Cache-Control: private, no-cache="set-cookie"
Expires: 0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8


To remove the X-Powered-By: PHP/5.2.11 from this header, open your php.ini file and change the line:
Code:
expose_php = On

to
Code:
expose_php = Off


Of course, restart of apache is needed for this to take effect.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/