HostOnNet Blog

Disable the php information on server for client

php
To disable the php information, open a servers php.ini file and make the following changes.

Change from

expose_php = On

To

expose_php = Off

It will prevent hacker to easily see that you have PHP installed on the system and what version you are running.

You can use below command to find the path to the php.ini file:

php -i | grep php.ini 

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.
Posted in PHP