Sun 10 Jun 2007
Hide PHP Version
Posted by Abhi under Dedicated Server Hosting , Linux Web Hosting , PHP Hosting Tutorials , VPS Hosting , Web Hosting , cheap linux web hostingHow to hide the PHP version to remote requests :
In order to prevent PHP from exposing the fact that it is installed on the server, by adding to the web server header we need to locate in php.ini the variable expose_php and turn it off.
By default expose_php is set to ‘On’
In your php.ini locate the line containing “expose_php On†and set it to Off ;
expose_php = Off
After making this change PHP will no longer add it’s signature to the web server header. Doing this, will not make your server more secure but,it will just prevent remote hosts to easily see that you have PHP installed on the system and what version you are running.
Leave a Reply
You must be logged in to post a comment.


















