V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
imxz
V2EX  ›  问与答

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

  •  
  •   imxz · Oct 19, 2014 · 4956 views
    This topic created in 4222 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
        1
    anjunecha  
       Oct 19, 2014 via Android
    做一个负载均衡就可以了
    wdlth
        2
    wdlth  
       Oct 19, 2014
    不要直接proxy_pass到Google,用upstream里面加一堆IP做均衡。有条件的可以使用IPv6。
    ilihai
        3
    ilihai  
       Oct 19, 2014
    不知道怎么做,能不能多ua轮询。
    imxz
        4
    imxz  
    OP
       Oct 19, 2014
    @anjunecha
    @wdlth

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