In this tutorial you will learn how to hide PHP Version header (X-Powered-By) in Apache on Ubuntu Server.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Apache Hide PHP Version header (X-Powered-By) # Fetch the HTTP-header only curl -I http://wp.liviubalan.com/ vi /var/www/wp.liviubalan.com/phpinfo.php <?php phpinfo(); # Edit php.ini file sudo vi /etc/php5/apache2/php.ini expose_php = Off # Restart Apache sudo service apache2 restart # Browser http://wp.liviubalan.com/phpinfo.php # Man page man curl # Useful links http://www.ducea.com/2006/06/16/apache-tips-tricks-hide-php-version-x-powered-by/ |
Useful links:
http://www.ducea.com/2006/06/16/apache-tips-tricks-hide-php-version-x-powered-by/