Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Jul 17, 2019 11:02 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - Remove "X-Powered-By: PHP/5.2.11" from HTTP headers of your web server
Author Message
Post subject: Remove "X-Powered-By: PHP/5.2.11" from HTTP headers of your web server  |  Post Posted: Wed Mar 24, 2010 6:49 am
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.
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO