[請益] header_remove除去http response header

看板PHP作者 (真理斯金)時間15年前 (2010/07/10 18:32), 編輯推噓5(509)
留言14則, 4人參與, 最新討論串1/1
我已經用 header_remove("X-Powered-By") 把X-Powered-By這個header去掉 但剩下的這些Header去不掉 感覺是Apache自己加的,我想把Server那個去掉要怎麼做?謝謝 Date: Sat, 10 Jul 2010 10:28:23 GMT Server: Apache/2.2.14 (Ubuntu) Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 20 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/html -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.210.59

07/10 19:12, , 1F
apache設定檔可以去掉剩下Apache 但我也想整個拿掉
07/10 19:12, 1F

07/10 19:52, , 2F

07/10 20:16, , 3F
請問一下那個設定檔的檔名是什麼??
07/10 20:16, 3F

07/11 11:53, , 4F
extra/httpd-default.conf ServerTokens ServerSignature
07/11 11:53, 4F

07/11 17:04, , 5F
謝謝,我的是在security的檔裡,但還是有Server
07/11 17:04, 5F

07/11 17:04, , 6F
最少只能設之Server: Apache
07/11 17:04, 6F

07/12 00:27, , 7F
怎樣才能讓他response header最少又能正常顯示呢??
07/12 00:27, 7F

07/12 02:52, , 8F
這麼大費周章的意義是? 用 mod_security 可以隨意填..
07/12 02:52, 8F

07/12 11:36, , 9F
我想減少封包大小 modsecurity嘗試安裝中...
07/12 11:36, 9F
※ 編輯: Geniusking 來自: 140.113.199.126 (07/12 11:36)

07/13 00:14, , 10F
網路環境如此惡劣(受限)? 沒差那幾個 byte 吧...
07/13 00:14, 10F

07/13 00:15, , 11F
隨便一個 html、javascript 都遠超過那些.. 還有圖檔哩..
07/13 00:15, 11F

07/13 10:37, , 12F
呵~假設網路惡劣+使用人數過多嘛~
07/13 10:37, 12F

07/13 10:38, , 13F
我是用在REST所以也沒html和js,圖檔有別的機制處理
07/13 10:38, 13F

07/13 10:40, , 14F
可能真的沒差那幾byte,但Server還是不要被攻擊者知道
07/13 10:40, 14F
文章代碼(AID): #1CE4mo9Y (PHP)
文章代碼(AID): #1CE4mo9Y (PHP)