加拿大华人论坛 美国华人新闻How to hide X
在加拿大
By default, PHP will show header likeX-Powered-By: PHP/5.2.1X-Powered-By may expose some security issue, it tells hacker which PHP version you are using nowCheck the response for browsing https://www.chineseinla.com/f.html, this is ChineseInLA.com's forum page.REQUEST: GET / HTTP/1.1 Host: www.chineseinla.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: zh-cn,zh;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: https://www.chineseinla.com/f.htmlRESPONSE: HTTP/1.1 200 OK Date: Sat, 02 Feb 2008 00:49:57 GMT Server: Apache/2.2.2 (Unix) DAV/2 PHP/5.2.1 X-Powered-By: PHP/5.2.1 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 10887 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8when install PHP, it default to turn the X-Powered-By on. It's configuration is in php.ini and the variable is expose_php.In order to remove X-Powered-By header, you can turn it off, likeexpose_php = OffAfter change, restart your apache, the configuration will take effect immideatelly GET /test.php HTTP/1.1 Host: www.chineseinla.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: zh-cn,zh;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cache-Control: max-age=0 --- WD_CV_WS2_HTTP_HEADER_REPLY(1056) CSTRING(7) Length=254 HTTP/1.1 200 OK Date: Sat, 02 Feb 2008 00:56:44 GMT Server: Apache/2.2.2 (Unix) DAV/2 Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 20 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=UTF-8
·加拿大新闻 马斯克三大战略回应特斯拉未来疑问
·加拿大新闻 保时捷W18:18缸怪兽,优点与缺点一览
·加拿大新闻 炸锅!纯中文广告再次现身加拿大!华人无语:当年列治文的伤
·加拿大新闻 2025款马自达EZ
·加拿大新闻 最新民调:邹至蕙支持率崩盘!多伦多人要求换新市长
·中文新闻 凯蒂·辛德:随着爱泼斯坦的爆料不断升级,菲姬被独立电视台
·中文新闻 肖恩·宾妻子隐藏的健康之战:演员的第五任妻子、40 岁的“战








