imxz
V2EX  ›  问与答

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

  •  
  •   imxz · Oct 19, 2014 · 5290 views
    This topic created in 4399 days ago, the information mentioned may be changed or developed.
    反向代理了谷歌学术,使用了一两天后出现 “请键入下面的字词,这样我们就知道请求是由您而不是机器人发出的” ,如何处理 ?

    我的配置如下:

    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;
    }
    }
    5 replies  •  2014-10-19 21:24:10 +08:00
    anjunecha
    anjunecha
    Oct 19, 2014 via Android
    1
    做一个负载均衡就可以了
    wdlth
    wdlth
    Oct 19, 2014
    2
    不要直接proxy_pass到Google,用upstream里面加一堆IP做均衡。有条件的可以使用IPv6。
    ilihai
    ilihai
    Oct 19, 2014
    3
    不知道怎么做,能不能多ua轮询。
    imxz
    imxz
    OP
    Oct 19, 2014
    4
    @anjunecha
    @wdlth

    谢谢 !
    xarrow
    xarrow
    Oct 19, 2014
    5
    均衡负载
    upstream {
    ip_hash;
    .........}
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5595 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:04 · PVG 11:04 · LAX 19:04 · JFK 22:04
    ♥ Do have faith in what you're doing.