MozTW 討論區 https://forum.moztw.org/ |
|
無意間...竟造出了一個真正No IE網站!!!!!! https://forum.moztw.org/viewtopic.php?f=2&t=6236 |
第 1 頁 (共 2 頁) |
發表人: | gamer [ 2005-01-28, 05:48 ] |
文章主題 : | 無意間...竟造出了一個真正No IE網站!!!!!! |
不知怎樣搞...用IE 完全不能訪問!! ![]() 其它的瀏覽器都很正常!! 不是騙你!各位朋友可以用IE和Firfox試試: http://wrss.gamess.org http://wrss.gamess.org/bbs/index.php |
發表人: | 伴月‧孤影 [ 2005-01-28, 06:19 ] |
文章主題 : | |
真的耶!真是恭禧閣下了 製出UnIE Only(只反IE的網頁) ![]() |
發表人: | gamer [ 2005-01-28, 06:43 ] |
文章主題 : | |
伴月‧孤影 寫: 真的耶!真是恭禧閣下了
製出UnIE Only(只反IE的網頁) ![]() ![]() 救命的...誰能幫我 ![]() |
發表人: | ghost [ 2005-01-28, 06:56 ] |
文章主題 : | |
抱歉更正一下: 你的 SERVER 送出去的其實已經經過編碼/處理 deflate (zlib) 看起來 IE 沒有正常的處理. 比較怪的是, IE送出去的 HEADER 宣稱自己支援 gzip,deflate SERVER 才依請求送出 deflate 編碼/處理 過的 TXT/HTML 結果 IE 收到後看不懂(他想要直接以 TXT/HTML 處理) 發現無法解譯,就出現你看到的畫面了. 所以,你試試看可不可以讓 SERVER 送出去的 txt/html 不要經過編碼處理(就是忽略 client 宣告,文件一律不做額外編碼送出) 或是看看有沒有 zlib or deflate 相關的模組可以 disable 以下是 IE 收到的內容 代碼: GET /bbs/ HTTP/1.1
Accept: */* Accept-Language: zh-tw,en-us;q=0.5 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FDM) Host: wrss.gamess.org Connection: Keep-Alive Cache-Control: no-cache Cookie: ol_offset=1552; lastvisit=1106866593 HTTP/1.0 200 OK Connection: close Date: Thu, 27 Jan 2005 23:06:13 GMT Server: 91X.Net Web Server R2.3.1 X-Powered-By: PHP/4.3.8 Set-Cookie: lastvisit=1106866850; expires=Fri, 27-Jan-2006 23:00:50 GMT; path=/ Content-Encoding: deflate Vary: Accept-Encoding Content-Type: text/html x..]yw....{.)..#S:..p.E.lH.....".N..UA..... ......................以下省略 gamer 寫: ![]() 救命的...誰能幫我 ![]() |
發表人: | Chris [ 2005-01-28, 07:00 ] |
文章主題 : | |
gamer 寫: ![]() 救命的...誰能幫我 ![]() 好厲害,也恭喜你! ![]() 其實光no IE已經不錯了呀~ 不用想讓所有IE核心的都不能讀啦~ 這樣已是很棒的成就囉~~~ (Green Browser還是不錯用的) 可惜我沒辦法幫忙完成你的野望,只能說恭喜 ![]() 等你確實了方法,也公布一下源始碼好唄? ![]() |
發表人: | gamer [ 2005-01-28, 07:43 ] |
文章主題 : | |
ghost 寫: 你的 SERVER 送出去的其實已經經過 GZIP 編碼, 看起來 IE 沒有正常的處理. 比較怪的是, IE送出去的 HEADER 宣稱自己支援 GZIP 編碼 SERVER 才依請求送出 GZIP 編碼過的 TXT/HTML 結果 IE 收到後看不懂(他想要直接以 TXT/HTML 處理) 發現無法解譯,就出現你看到的畫面了. 所以,你可以試試看 先 Disable Server Side gzip 模組. .................... 引言回覆: content-encoding: gzip X
↑這樣? |
發表人: | ghost [ 2005-01-28, 08:03 ] |
文章主題 : | |
我修改的我第一封留言. 你參考,我搞錯了應該不是 gzip 而是 deflate 這個編碼, 應該與 zlib 相關,你參考. (之前不知道有這個編碼,剛才查了一下 rfc , 希望沒有誤解) 引言回覆: deflate The "zlib" format defined in RFC 1950 [31] in combination with the "deflate" compression mechanism described in RFC 1951 [29]. (所以就是 server 確實依約定送出 deflate 編碼,不過看起來 IE 看不懂, 所以,大概只剩下 disable deflate 的選擇,就是看看能不能強制讓 server 忽略 client 要求,一率送出沒有編碼過的 txt/html ) gamer 寫: 引言回覆: content-encoding: gzip X ↑這樣? 或者你 enable GZIP 模組. 原則上應該 server 就會先送出 gzip 編碼的資料 因為 IE 送出去的 header 宣稱自己支援 gzip,deflate 這兩種編碼的資料. 如果你 enable GZIP,SERVER 也以 Gzip 編碼 回應的 header , 關於 content-encoding 應該為 引言回覆: content-encoding: gzip
|
發表人: | gamer [ 2005-01-28, 08:31 ] |
文章主題 : | |
仍然不行 ![]() ![]() ![]() 但普通html的頁面仍可讀取的.如: http://wrss.gamess.org/firefox/ 不知問題究竟在哪~ |
發表人: | vertex [ 2005-01-28, 08:32 ] |
文章主題 : | |
真的是 IE 沒有辦法讀取 而 FireFox 可以正常訪問 第一次看到這種狀況... |
發表人: | ghost [ 2005-01-28, 08:41 ] |
文章主題 : | |
我剛才看了一下你的 http://wrss.gamess.org/ 是正常的. 但, http://wrss.gamess.org/bbs/index.php 卻不正常 (IE 正確讀到 http://wrss.gamess.org/ 轉往 http://wrss.gamess.org/bbs/ 的訊息,但卻看不懂 http://wrss.gamess.org/bbs/ 內容) 所以看看是不是 PHP 的設定造成. ps. 如果 IE 沒有宣告支援的編碼, /bbs 送出來的是沒有編碼過的 txt/html 代碼: GET /bbs/ HTTP/1.1
Host: wrss.gamess.org Accept: text/html, text/plain, text/sgml, video/mpeg, image/jpeg, image/tiff, im age/x-rgb, image/png, image/x-xbitmap, image/x-xbm, image/gif, application/posts cript, */*;q=0.01 Accept-Language: en User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7b HTTP/1.1 200 OK Date: Fri, 28 Jan 2005 00:44:07 GMT Server: 91X.Net Web Server R2.3.1 X-Powered-By: PHP/4.3.8 Set-Cookie: lastfid=deleted; expires=Thu, 29-Jan-2004 00:44:06 GMT; path=/ Set-Cookie: ol_offset=7081; expires=Sat, 28-Jan-2006 00:38:43 GMT; path=/ Set-Cookie: lastvisit=1106872723; expires=Sat, 28-Jan-2006 00:38:43 GMT; path=/ Connection: close Transfer-Encoding: chunked Content-Type: text/html 7a62 <!-- --> <html> <head> <title>風雨雪境 - 論壇 </title> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <meta name="keywords" content="風雨雪境,BT,軟體,MV,音樂下載..."> <link rel="Shortcut Icon" type="image/png" href="/images/W.png"> <!--css--><style type='text/css'> TABLE { BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px} ........................................ 其餘省略 所以, disable gzip , zlib 這兩個模組理論上應該會讓 server 以後無法送出 編碼過的 txt/html 你檢查看看 apache 與 php , gzip 與 zlib 模組設定看看(如果有的話) |
發表人: | gamer [ 2005-01-28, 09:25 ] |
文章主題 : | |
ghost 寫: 我剛才看了一下你的
http://wrss.gamess.org/ 是正常的. 但, http://wrss.gamess.org/bbs/index.php 卻不正常 (IE 正確讀到 http://wrss.gamess.org/ 轉往 http://wrss.gamess.org/bbs/ 的訊息,但卻看不懂 http://wrss.gamess.org/bbs/ 內容) 所以看看是不是 PHP 的設定造成. ps. 如果 IE 沒有宣告支援的編碼, /bbs 送出來的是沒有編碼過的 txt/html ....................... 我檢查過.也可能是php出現bug. 我在私人訊息傳些資料給你,希望能相助 ![]() |
發表人: | ghost [ 2005-01-28, 09:34 ] |
文章主題 : | |
你的 Zlib壓縮文件支持 √ 是打開的.所以,把 PHP Zlib 模組暫時拿掉看看. (映像中 zlib 是獨立的模組.) sorry.兩年多沒有用 PHP 了. 這一段得你親自確認了. 此外應該只是單純的 IE 不支援 zlib 壓縮(或說看不懂你的 Server 送出的 zlib 編碼,目前我也不知道原因) 因為使用 Firefox , 收到的也是 zlib 壓縮過的, 代碼: GET /bbs/ HTTP/1.1
Host: wrss.gamess.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Accept: 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-tw,zh-cn;q=0.8,zh;q=0.6,en-us;q=0.4,en;q=0.2 Accept-Encoding: gzip,deflate Accept-Charset: Big5,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://wrss.gamess.org/ Cookie: ol_offset=9409; lastvisit=1106876398 Pragma: no-cache Cache-Control: no-cache HTTP/1.1 200 OK Date: Fri, 28 Jan 2005 01:45:56 GMT Server: 91X.Net Web Server R2.3.1 X-Powered-By: PHP/4.3.8 Set-Cookie: lastvisit=1106876432; expires=Sat, 28-Jan-2006 01:40:32 GMT; path=/ Content-Encoding: deflate Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked Content-Type: text/html 18c2 x..]yw....{.)..#S:....(RdCJ..8..Iv... ......................... 以下省略 |
發表人: | ghost [ 2005-01-28, 10:06 ] |
文章主題 : | |
你參考一下這篇文章.看看是否合用 壓縮頁面 這一段 http://64.233.167.104/search?q=cache:qQimAjv7PB4J: www.rr365.net/tw/edu-php/php307.htm+%22zlib.outpu t_compression%22&hl=zh-TW&lr=lang_zh-TW&client=firefox-a |
發表人: | ghost [ 2005-01-28, 10:11 ] |
文章主題 : | |
參考看看這一篇: 試試看把 zlib.output_compression=Off http://64.233.167.104/search?q=cache:UvneYlo6UtAJ: www.sinohome.net.cn/zh/ref.zlib.html+%22zlib.output _compression%22&hl=zh-TW&lr=lang_zh-CN|lang_zh-TW&client=firefox-a 代碼: The zlib extension offers the option to transparently compress your pages on-the-fly, if the requesting browser supports this. Therefore there are three options in the configuration file php.ini.
表格 1. Zlib Configuration Options Name Default Changeable zlib.output_compression "Off" PHP_INI_ALL zlib.output_compression_level "-1" PHP_INI_ALL zlib.output_handler "" PHP_INI_ALL For further details and definition of the PHP_INI_* constants see ini_set(). 以下是该配置选项的简要解释。 zlib.output_compression boolean/integer Whether to transparently compress pages. If this option is set to "On" in php.ini or the Apache configuration, pages are compressed if the browser sends an "Accept-Encoding: gzip" or "deflate" header. "Content-Encoding: gzip" (respectively "deflate") and "Vary: Accept-Encoding" headers are added to the output. You can use ini_set() to disable this in your script if the headers aren't already sent. If you output a "Content-Type: image/" header the compression is disabled, too (in order to circumvent a Netscape bug). You can reenable it, if you add "ini_set('zlib.output_compression', 'On')" after the header call which added the image content-type. This option also accepts integer values instead of boolean "On"/"Off", using this you can set the output buffer size (default is 4KB). 注: output_handler must be empty if this is set 'On' ! Instead you must use zlib.output_handler. zlib.output_compression_level integer Compression level used for transparent output compression. zlib.output_handler string You cannot specify additional output handlers if zlib.output_compression is activated here. This setting does the same as output_handler but in a different order. |
發表人: | gamer [ 2005-01-28, 10:49 ] |
文章主題 : | |
zlib.output_compression "Off" 這個? 但好像不行 ![]() 看來短期內都只能謝絕IE訪問了....... ![]() |
第 1 頁 (共 2 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |