Virtual Brain Online Logo

Bookmark: Root \ PHP \ Disable X-Powered by PHP string in Apache web server header with expose_php

Disable X-Powered by PHP string in Apache web server header with expose_php


Last Updated: 2005-11-27

Disable X-Powered by PHP string in Apache web server header with expose_php

To disable PHP's habit of announcing itself inside the Apache web server header, simply change the main PHP configuration file as shown.


File:
Filename: /etc/php5/apache2/php.ini
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header). It is no security
; threat in any way, but it makes it possible to determine whether you use PHP
; on your server or not.
;expose_php = On
expose_php = Off


And restart your web server.
Originally Posted by Skylinux @ 2005-11-26 19:39:34

 

No Comments yet .....

 

Add Your Comment:

Note: All posts require administrator approval. Please allow 24 hours for message approval.

Name:
E-Mail:
Title
Plain text only, less then 65 000 characters.

Please write the numerical representation of six hundred twenty-five into the box below.

Please answer the question above and type the answer into the text box below.