curl: can't fetch rss from website because of CloudFlare

前端 未结 3 1168
无人及你
无人及你 2020-12-17 02:56

I\'m notable to connect this site http://www.youm7.com/newtkarirrss.asp using curl on the server

But i can access it from localhost with out any pro

3条回答
  •  忘掉有多难
    2020-12-17 03:39

    You can't easily bypass Cloudflare. However you can hack the protection system. :)

    First, parse the page (Cloudflare protection page) and calculate 3+13*7 (most probably this will be different for each request.) in

    $(function(){setTimeout(
                function(){
                    $('#jschl_answer').val(3+13*7);
                    $('#ChallengeForm').submit();
                },
                5850
    )});
    

    Then send post request the same page with "jschl_vc" value from #ChallengeForm which you got from parsed data and "jschl_answer" value as 3+13*7. And then try to fetch the page again with the cookie value that Cloudflare added. When you're added Cloudflare whitelist, you won't see that page anymore.

提交回复
热议问题