How to remove the version of PHP: X-Powered-By: PHP/4.1.0

November 2016






PHP is configured to send by default a header HTTP called X-Powered-By, giving the version of PHP used.


To remove this header, just change the option expose_php found in php.ini file:

expose_php = off

Related :

This document entitled « How to remove the version of PHP: X-Powered-By: PHP/4.1.0 » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.