简体   繁体   English

如何访问使用cloudflare的网站?

[英]How can I access a website that are using cloudflare?

I am having a problem with my curl script for accessing a website that has a cloudflare. 我的curl脚本访问具有cloudflare的网站时遇到问题。

It was working before when the site wasn't using cloudflare. 在站点未使用cloudflare之前,它一直在工作。

I also have in my script what browser i am using. 我的脚本中还包含我正在使用的浏览器。

curl_setopt ($ch2, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6"); 

When I open the php script. 当我打开php脚本时。

I'm stuck on 我坚持

Checking your browser before accessing xrshellbooter.com.
DDoS protection by CloudFlare

so it doesn't allow me to access the site. 因此它不允许我访问该网站。

CloudFlare has a javascript enabled page that is turned on by a website owner, and designed to only allow actual working browsers with javascript enabled to enter the website. CloudFlare具有一个启用了javascript的页面,该页面由网站所有者打开,旨在仅允许启用了javascript的实际工作浏览器进入该网站。 You need to ask the owner of the CloudFlare account to whitelist the IP you are attempting to make the request from. 您需要让CloudFlare帐户的所有者将您试图从中发出请求的IP列入白名单。 Your configuration and code should work after that 之后,您的配置和代码应该可以正常工作

This appears to be a little old...but I'll respond... 这似乎有点旧...但是我会回应...

Whatever you are doing is triggering a DDoS trigger & the interstitial page you are seeing is checking to make sure you're not a bot. 无论您执行什么操作,都会触发DDoS触发器,并且您看到的插页式页面正在检查以确保您不是机器人。 You should have the site owner whitelist the IP(s) the calls are coming from. 您应该让网站所有者将呼叫来自的IP列入白名单。

如果您拥有该域,则可以在CloudFlare中将您自己的服务器IP列入白名单,并且您不会再看到DDoS保护屏幕。

如果网站是http://www.example.com ,则可以使用http://direct.example.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM