Trying to curl to a site protected by cloudflare


#1

A site that I started protecting with cloudflare supports calls from other servers using this command:

curl http://explorer.mysite.com/api/getinfo

however with cloudflare, the curl commans gets back html telling your to enable javascript -

how can I change some setting in cloudflare to allow the curl command to run from other servers?

thanks


#2

You need to whileist the IP where you send the request from.


#3

that;s impossible since the request could come from thousands of servers. this is a block explorer for a cryptocurrency and we have thousands of users that need too access the data


#4

Then you can create a page rule for that specific path which drops security altogether.


#5

is there some guidance on how to do that - I have this url published in hundreds of places - that seems like a lot of work - I think I’ll just abandon cloudflare


#6

Thats explained in the support area. It literally only takes a few seconds to set up.


#7

Sounds like you’ve enabled I’m Under Attack Mode. You could disable that, either globally or using a page rule for the URI in question.



#8

it’s actually a subdomain of the site that I have no need to protect


#9

Then don’t :orange: the record in your DNS control panel.


#10

thank you very much - I appreciate the fast responses!


#11

I assume this subdomain does not point to the original server, right?