如何处理谷歌学术反代中需要输入验证码的问题 ?

2014-10-19 15:30:51 +08:00
 imxz
反向代理了谷歌学术,使用了一两天后出现 “请键入下面的字词,这样我们就知道请求是由您而不是机器人发出的” ,如何处理 ?

我的配置如下:

server
{
listen 80;
server_name scholar.goojie.me;

location / {
proxy_redirect http://scholar.google.com/ /;
proxy_set_header Host "scholar.google.com";
proxy_set_header Accept-Encoding "";
proxy_set_header Accept-Language "zh-CN";
proxy_set_header User-Agent $http_user_agent;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://scholar.google.com;
sub_filter scholar.google.com scholar.goojie.me;
sub_filter_once off;
}
}
4511 次点击
所在节点    问与答
5 条回复
anjunecha
2014-10-19 15:46:19 +08:00
做一个负载均衡就可以了
wdlth
2014-10-19 16:47:55 +08:00
不要直接proxy_pass到Google,用upstream里面加一堆IP做均衡。有条件的可以使用IPv6。
ilihai
2014-10-19 17:26:03 +08:00
不知道怎么做,能不能多ua轮询。
imxz
2014-10-19 19:53:17 +08:00
@anjunecha
@wdlth

谢谢 !
xarrow
2014-10-19 21:24:10 +08:00
均衡负载
upstream {
ip_hash;
.........}

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/140005

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX