#blocked by cloudflare

3 messages · Page 1 of 1 (latest)

whole terrace
#

calling http endpoint on a site via convex seemingly gets blocked by cloudflare on the site, are there any workaround excepts for moving the entire functionality to a stable host/off of convex?

hollow walrusBOT
#

Hi @whole terrace. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

If your HTTP requests from Convex to another site are being blocked by Cloudflare (for example, due to Cloudflare's security or rate-limiting features), the knowledge sources do not provide a direct, Convex-specific workaround for bypassing Cloudflare's protections on the target site.

However, some general strategies are discussed in the context of proxies and traffic filtering. For example, you could potentially set up a proxy layer between Convex and the target site to handle traffic analysis or filtering, as mentioned in a discussion about mitigating billing risks and bad actors. This approach doesn't require moving your entire functionality off Convex, but it does require additional infrastructure to act as an intermediary between Convex and the Cloudflare-protected endpoint. The proxy would need to handle SSL termination and forward requests appropriately, but this is a general web architecture solution, not something built into Convex itself Discord: Billing risk from bad actors.

If Cloudflare is blocking requests based on IP, headers, or other request characteristics, you may need to work with the administrator of the Cloudflare-protected site to allowlist your traffic or adjust their security settings.

In summary, the knowledge sources do not mention a built-in Convex feature to bypass Cloudflare blocks. Using a proxy or working with the site owner are the main alternatives, aside from moving your functionality elsewhere.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: