Virtual Brain Online Logo

Bookmark: \ 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

 

Title:
Posted By: On:
Running:

 

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.

What is the sum of 1000 and thirty

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