How to hide Apache and PHP Versions from remote users

0 Comment(s)

Hide Apache Information

To hide the information, add/change the following two apache directives in Apache configuration file /etc/httpd/conf/httpd.conf
ServerTokens ProductOnly ServerSignature Off
Now you need to restart your web server using the following command
# service httpd restart
Now the output for apache header looks like below
Server: Apache

Hide PHP Version in Apache from remote user’s requests

In your php.ini (the typical path is /etc/php.ini) locate the line containing “expose_php = On

Leave a Reply

Your email address will not be published. Required fields are marked *

2 + 4 =

Looking for any specific topic / article?

Generic selectors
Exact matches only
Search in title
Search in content

Most popular searches: Technology, Website, AI

Enjoy this blog?

Your may interested in our latest blogs

Stay Updated

Please enter your details below to get
A Free Trial
x + x* =