conradjohnathan17 / snova

Automatically exported from code.google.com/p/snova
0 stars 0 forks source link

此页面不能正确地重定向 #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. google图片搜索结果中,链接中带有被墙网址
eg:http://www.google.com/imgres?hl=zh-CN&newwindow=1&c2coff=1&gbv=2&tbm=isch&tbn
id=iZFc1Yip6Om0BM:&imgrefurl=http://javagraphics.blogspot.com/&docid=j0nKojpdCUt
3_M&imgurl=https://java.net/svn/javagraphics~svn/trunk/tests/com/bric/image/reso
urces/bridge3.jpg&w=2750&h=2063&ei=_aIzT7-vHtGeiAeDg52VAg&zoom=1&iact=hc&vpx=953
&vpy=287&dur=269&hovh=194&hovw=259&tx=151&ty=129&sig=106932840423319373852&page=
1&tbnh=129&tbnw=172&start=0&ndsp=34&ved=1t:429,r:13,s:0&biw=1600&bih=779

What is the expected output? What do you see instead?
此页面不能正确地重定向
Firefox 检测到该服务器正在将此地址的请求循环重定向。
此问题可能是因为禁用或拒绝 Cookie 导致。

What version of the product are you using? On what operating system?
win7 x64
snova v0.12.0107 via gae
snova v0.12.0204 via gae

Please provide any additional information below.

Original issue reported on code.google.com by titanium98118 on 9 Feb 2012 at 10:48

GoogleCodeExporter commented 9 years ago
你启用了spac吧,是否将此地址中转到Google地址?

Original comment by yinqiwen@gmail.com on 9 Feb 2012 at 12:26

GoogleCodeExporter commented 9 years ago
是的,忘记spac了,那要怎么排除呢?

Original comment by titanium98118 on 9 Feb 2012 at 12:32

GoogleCodeExporter commented 9 years ago
这个和blogspot.com有关
修改spac.td脚本,SelectProxy方法中加上下面四行
if $url ~="blogspot.com"
{ 
    return $GAE;
}

if $host~=".google" || $host~="ytimg."|| $host~="gstatic."|| 
$host~="developer.android.com" || $host~=".appspot.com"  
        || $host~="www.youtube.com" || $host~="golang.org" 
     { 
        return $GOOGLE;
     }

Original comment by yinqiwen@gmail.com on 9 Feb 2012 at 1:08

GoogleCodeExporter commented 9 years ago
谢谢。
我稍微改了一下,这样无论URL中有blogspot、twitter还是fb都没问
题了。
if $url ~="google.com/imgres?"
{
return $SSHD;
}

Original comment by titanium98118 on 9 Feb 2012 at 3:59