Is Cloudflare blocking me?
I believe so. I use GET commands in a custom IoT application (not a browser) to get various data from other web sites (google.com, maps.google.com, as well as other sites). For all these sites, I can get the IP address, open a secure socket and communicate. (Note that sites such as iscloudflareblockingme.com can't be used because I am not using a browser.) But with cloudflare.com and 2 other sites behind the Cloudflare wall, my traffic is blocked.
I suspect that their servers are looking for something that I’m not providing. As I’m not using a browser, one guess is Cloudflare is expecting a user-agent. I don’t see a user-agent for my kind of application and wouldn’t know how to add that to my command. There are other http options that may cause the problem too.
I was successfully accessing an API until that web site moved behind the Cloudflare wall. When that stopped working, I back-tracked to just getting the home page, and finally just cloudflare.com.
My basic command it GET https://www.cloudflare.com. Depending on other options, I either get a 403 Forbidden, or sometimes a 400 Bad Request.
How might I figure this out?
Thanks.
Dave
Connect, Protect and Build Everywhere | Cloudflare
Make employees, applications and networks faster and more secure everywhere, while reducing complexity and cost.
1 Reply
yes, I understand. but what do I add as a user-agent for an IoT, and what does Cloudflare expect? This is the hurdle I haven't been able to get past.
thanks!