PHP Version Leakage
suggest changeBy default, PHP will tell the world what version of PHP you are using, e.g.
X-Powered-By: PHP/5.3.8
To fix this you can either change php.ini:
expose_php = off
Or change the header:
header("X-Powered-By: Magic");
Or in .htaccess, when the server allows header directives:
Header unset X-Powered-By
If those settings do not remove the header, header_remove() can remove it from the response:
header_remove('X-Powered-By');
If attackers know that you are using PHP and the version of PHP that you are using, it’s easier for them to exploit your server.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents