最近一段时间访问百度、 verycd 、 oschina 等网站出现 302 ,但是 ping 是没有问题的。不论是 WIFI 还是有线,无一不是 302...
使用 fiddler2 抓包结果如下:
GET http://www.baidu.com/index.php?tn=mswin_oem_dg HTTP/1.1
Accept: text/html, application/xhtml+xml, image/jxr, */*
Accept-Language: zh-Hans-CN,zh-Hans;q=0.8,en-US;q=0.5,en;q=0.3
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64 ) AppleWebKit/537.36 (KHTML, like Gecko ) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Accept-Encoding: gzip, deflate
DNT: 1
Host: www.baidu.com
Connection: Keep-Alive
Cookie: BAIDUID=5347AAF194C48A498F6CA71A3B18F4E7:FG=1; BIDUPSID=5347AAF194C48A498F6CA71A3B18F4E7; PSTM=1438868195; BDRCVFR[bLbo9QmdyQn]=aeXf-1x8UdYcs; BD_LAST_QID=16798790746009251183
HTTP/1.1 302 Moved Temporarily
Date: Wed, 02 Sep 2015 15:22:40 GMT
Content-Type: text/html
Content-Length: 215
Connection: Keep-Alive
Set-Cookie: BDRCVFR[bLbo9QmdyQn]=aeXf-1x8UdYcs; path=/; domain=.baidu.com
Set-Cookie: BD_LAST_QID=17768487627213785721; path=/; Max-Age=1
P3P: CP=" OTI DSP COR IVA OUR IND COM "
Location: https://www.baidu.com/index.php?tn=mswin_oem_dg
Server: BWS/1.1
X-UA-Compatible: IE=Edge,chrome=1
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>pr-nginx_1-0-244_BRANCH Branch
Time : Mon Aug 24 14:55:36 CST 2015</center>
</body>
</html>
GET http://www.baidu.com/ HTTP/1.1
Host: www.baidu.com
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64 ) AppleWebKit/537.36 (KHTML, like Gecko ) Chrome/43.0.2357.134 Safari/537.36
DNT: 1
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: BAIDUID=0EC51BBDB390148A685AE8EB3B1D5884:FG=1; BIDUPSID=0EC51BBDB390148A685AE8EB3B1D5884; BDUSS=1JZZUstYnhoUkhCanZIT0ctY243R3pHMXN2ZEY3cURVQ1RBUHR0OTFybU90SXBWQVFBQUFBJCQAAAAAAAAAAAEAAAATSKgWTXVycGh5TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI4nY1WOJ2NVM; PSTM=1432649891; ispeed_lsm=2; BD_UPN=12314753
HTTP/1.1 302 Moved Temporarily
Date: Wed, 02 Sep 2015 15:24:28 GMT
Content-Type: text/html
Content-Length: 215
Connection: Keep-Alive
Location: https://www.baidu.com/
Server: BWS/1.1
X-UA-Compatible: IE=Edge,chrome=1
Set-Cookie: BD_LAST_QID=13215679850863398944; path=/; Max-Age=1
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>pr-nginx_1-0-244_BRANCH Branch
Time : Mon Aug 24 14:55:36 CST 2015</center>
</body>
</html>
1
MurphyL OP ➜ ~ ping baidu.com
PING baidu.com (220.181.57.217 ): 56 data bytes 64 bytes from 220.181.57.217: icmp_seq=0 ttl=53 time=20.313 ms 64 bytes from 220.181.57.217: icmp_seq=1 ttl=53 time=22.894 ms 64 bytes from 220.181.57.217: icmp_seq=2 ttl=53 time=22.549 ms ^C --- baidu.com ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 20.313/21.919/22.894/1.144 ms |
2
oott123 2015-09-02 23:52:41 +08:00 via Android
改用 https 试试,目测运营商劫持。
另外建议楼主改下密码, cookies 都暴露了~ |
5
Strikeactor 2015-09-03 00:10:35 +08:00
能 302 一般 ping 是肯定没问题的
楼主补补基础知识吧。。 |
6
datocp 2015-09-03 00:20:19 +08:00 via Android
302 重定向早已经习惯,电信线路也经常需要刷新才能看到有些论坛新内容。网上到处是缓存服务器,不知道这些东东是否跟行为管理路由一样的是否会把密码也到处保存着,想想都觉得可怕。
|
7
MurphyL OP @Strikeactor 啊,嗯,谢谢建议。对这些的确没什么概念~
|
9
datocp 2015-09-03 00:55:42 +08:00 via Android
这个问题应该属于无解状态,尝试按网上的教程封锁 302 服务器封得手软,关键像 wget 这种单线程工具立马不能工作,最终只能放弃,按流行的话讲这已经是新常态了。
|
10
imn1 2015-09-03 01:49:12 +08:00 1
GET http
302 Location https 插件或工具还是浏览器本身强制 SSL 吧? |
12
MurphyL OP |