How can I disable PHP's “easter egg” URLs?

前端 未结 4 547
名媛妹妹
名媛妹妹 2020-12-12 14:18

I recently found out about the so-called \"easter egg URLs\" in PHP:

These are the four QUERY strings you can add to the end of a PHP web page to view

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 14:58

    in php.ini

    ; 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.
    ; http://php.net/expose-php
     expose_php = Off
    

    This will effectively remove the easter eggs

提交回复
热议问题