Limit request size to 10MB

What is the name of the domain?

example.com

What is the issue you’re encountering

Is there a way to limit a request size to 10MB such that Cloudflare returns a 413 if the request is over 10MB ?

I’ve just given this a try, but it seems neither http.request.body.size nor len(http.request.body.raw) are available without the advanced enterprise plan.

You could try a rule based on the content-length header if that is god enough for you.

This topic was automatically closed after 15 days. New replies are no longer allowed.