How to hide Apache Version, Server Info, Signaturem Header Php Version
Hide Apache Version Number
To hide the Apache information, you need to do the following changes the Apache configuration file /etc/httpd/conf/httpd.conf
#/etc/httpd/conf/httpd.conf
#ServerTokens Os
#ServerSignature On
to
#ServerTokens Prod or #ServerTokens ProductOnly
#ServerSignature Off
Now you need to restart your apache server using the following command
#service httpd restart
Now the output for apache header looks like below
Server: Apache
Hide PHP Version Details:
To hid the PHP information you have to edit /etc/php.ini and modify the following options
#vim /etc/php.ini
#expose_php On
to
#expose_php Off
Now you need to restart your apache server
#service httpd restart
After making this change PHP will no longer add it’s signature to the web server header.
Yes .. It is Useful .. Thanks