Remove server info and PHP info from response header

user2090305 picture user2090305 · Feb 28, 2013 · Viewed 29.7k times · Source

How can i prevent server info and php info to be displayed in response header

Answer

Sankalp Mishra picture Sankalp Mishra · Feb 28, 2013

for server info add the following lines in apache2.conf

ServerTokens ProductOnly

ServerSignature Off

For PHP info

in your php.ini

turn

expose_php = off