Hi.
On 22.11.22 21:57, Branitsky, Norman wrote:
I have the following "generic" rate limit defined - 150 requests in 10s
from the same IP address:
stick-table type ip size 100k expire 30s store http_req_rate(10s)
http-request track-sc0 src unless { src -f
/etc/CONFIG/haproxy/cidr.lst }
http-request deny deny_status 429 if { sc_http_req_rate(0) gt 150 }
Is it possible to rate limit a specific "computationally expensive" HTML
request from the same IP address to a much smaller number?
What do you define as a "computationally expensive" request?
Maybe you could draw a bigger Picture and tell us what version of
HAProxy do you use.
In the upcoming 2.7 is also a "Bandwidth limitation", maybe this could
help to solve your issue.
https://docs.haproxy.org/dev/configuration.html#9.7
HTML is a Description Language therefore I think you want to restrict
HTTP Request/Response, isn't it?
https://www.rfc-editor.org/rfc/rfc1866
*Norman Branitsky*
Senior Cloud Architect
Tyler Technologies, Inc.
Regards
Alex
P: 416-916-1752
C: 416.843.0670
www.tylertech.com
Tyler Technologies