#Cloudflare is blocking requests to my API

15 messages · Page 1 of 1 (latest)

twin harbor
#

Previously on Cloudflare, I’ve had issues where my clients reported being blocked when making requests to my API because their IP addresses are obviously from data centers.

It’s completely normal for Cloudflare to block requests from data centers in an effort to block bots visiting my website, but of course the subdomain api.domain.com is obviously an API and is obviously also accessed by data centers.

Currently, our solution is to disable Cloudflare’s WAF for the API subdomain, a paid feature and the only reason we currently have to pay $20/month.

What other solutions are there? Because I understand that people host client-facing APIs protected by Cloudflare and must be facing this issue.

#

Please, if anyone sends me a message, tag me using @twin harbor so Discord will notify me of the message; otherwise, I won't see it unless I check manually.

gleaming hornet
#

You just.. don’t use bot fight mode?

weak mason
#

@twin harbor are you using bot fight mode?

twin harbor
weak mason
twin harbor
weak mason
# twin harbor What exactly do you mean?

You could try registering it as its own separate domain (how you originally set up this domain) and then configure the DNS records of the main to point out at the other one. The configure bot fight mode for the main one only

#

(Just an idea)

twin harbor
#

Is that the only solution besides the one I'm currently using?

weak mason
weak mason
twin harbor
# weak mason Theres always the option of paying cloudflare

I'm currently testing it out; the only thing that doesn't quite convince me is that when I disable Cloudflare's protections for the subdomain at the payment layer, am I also disabling Cloudflare's CDN service for my API? Since that's something I'd like to keep active to make it as fast as possible—though, well, it is an API, and I'm not sure if it really helps since it doesn't have static files as such

weak mason