Hiding PHP's X-Powered-By header

前端 未结 6 1963
太阳男子
太阳男子 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 01:00

    Headers are "collected" by PHP before being sent back to the browser, so that you can override things like the status header. The way to test it is go to a command prompt, and type:

    telnet www.yoursite.com 80
    GET /index.php HTTP/1.1
    [ENTER]
    [ENTER]
    

    And you'll see the headers that are sent in the response (replace /index.php with the URL of your PHP page after the domain.)

提交回复
热议问题