Hiding PHP's X-Powered-By header

前端 未结 6 1983
太阳男子
太阳男子 2020-12-13 23:59

I know in PHP, it sends the X-Powered-By header to have the PHP version.

I also know by appending some checksums, you can get access to PHP\'s credits,

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 00:50

    You can set expose_php = Off in your php.ini if you don't want it to send X-Powered-By header.

    PHP first compiles everything (including which headers have which values ) and then start the output, not vice-versa.

    PHP is also detectable with its own easter eggs, you can read about this topic here : PHP Easter Eggs

提交回复
热议问题