Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove server info and PHP info from response header

Tags:

apache

php-ini

People also ask

How do I get rid of Microsoft IIS 8.5 from response header?

In IIS Manager, at the server level, go to the Features view. Click on HTTP Response Headers. You can add/remove headers there. You can also manage the response headers at the site level as well.


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