Home » Categories » Apache » Configuration

Hide X-Powered-By: PHP

As so much in our beautiful world of IT it's very easy:

 

  1. Open your php.ini in the editor of your trust.
  2. Find this line:
    ; 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
  3. Change the On to an Off:
    expose_php = Off
  4. Reload your Apache and the X-Powered-By: PHP header is gone.

Reference:

https://blogs.oracle.com/oswald/hide-x-powered-by:-php

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
 
Attachments Attachments
There are no attachments for this article.
Comments Comments
There are no comments for this article. Be the first to post a comment.
Related Articles RSS Feed
How to Change the Apache Error Messages
Viewed 482 times since Fri, Feb 25, 2022
PHP Warning: PHP Startup: Unable to load dynamic library ’curl’
Viewed 780 times since Thu, Feb 3, 2022
PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
Viewed 1818 times since Mon, Sep 28, 2020
PageSpeed: Enable Keep-Alive
Viewed 388 times since Tue, Mar 1, 2022