加拿大华人论坛 美国华人新闻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
·加拿大新闻 慕尼黑,长安新航标
·加拿大新闻 顶尖!多伦多病童医院荣登全球儿科第一!这些医院专科非常领
·加拿大新闻 “免费检查”骗局!士嘉堡男子花掉4万加元做了不必要屋顶维修
·加拿大新闻 欧拉首款纯电SUV亮相,或命名“欧拉5”
·加拿大新闻 新款911 Turbo S发布,这个价格还是没认清定位
·新西兰新闻 中餐厨师小时薪低至11纽币 华人老板被判支付4万欠薪
·新西兰新闻 降雪、雷暴、强风来袭!南岛交通即将迎来严峻考验