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 ID: 24
Created On: Tue, Sep 15, 2020 at 4:19 AM
Last Updated On: Tue, Sep 15, 2020 at 4:19 AM
Authored by: Saeed Nobakht [[email protected]]

Online URL: https://www.navel.ir/article/hide-x-powered-by-php-24.html