Origin Rate limit rule

What is the name of the domain?

cloudflare-id-test.idxcloud.net

What is the error number?

20127

What is the error message?

‘http.request.uri.path eq “/login” and http.request.method eq “POST” and http.response.code in {401 403}’ is not a valid value for expression because the use of field http.response.code is not allowed

What is the issue you’re encountering

Not able to create rate limit origin rule

What steps have you taken to resolve the issue?

Created support ticket

What are the steps to reproduce the issue?

You can apply below expression into rate limiting rule then you will encounter the error.

Expression : http.request.uri.path eq “/home” and http.request.method eq “POST” and http.response.code in {401 403}

Our main concern with http.response.code .parameter(condition) that we are not able to find in the list (parameter list).

Note : We have enterprise plan .

Screenshot of the error

The WAF operates on requests from a client before going to your origin, so a response code isn’t a valid field to use in an expression.

[correction] As below, seems it is for rate limiting.

1 Like

For rate limiting rules with the correct services I believe origin response is an option.

So many weird exceptions to Cloudflare logic.

1 Like

Just taken a better look, the response code is to be used in the counting expression, not in the incoming requests expression…

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.