A "computationally expensive" request is a request sent to our Public Search service - no login required so it seems to be the target of abuse. For example: https://<FQDN>/datamart/searchByName.do?anchor=169a72e.0
Norman Branitsky Senior Cloud Architect P: 416-916-1752 -----Original Message----- From: Aleksandar Lazic <[email protected]> Sent: Tuesday, November 22, 2022 4:27 PM To: Branitsky, Norman <[email protected]> Cc: HAProxy <[email protected]> Subject: Re: Rate Limit a specific HTML request 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://urldefense.com/v3/__https://docs.haproxy.org/dev/configuration.html*9.7__;Iw!!A69Ausm6DtA!cXofLVgdVtpc37THsFRU0XMLkddQpViT0iPILErgEsXJ5Ij0hkHgjayqKAMX3sQrCOK74wbouLMjDkb0ZJe5a08n2NK9$ HTML is a Description Language therefore I think you want to restrict HTTP Request/Response, isn't it? https://urldefense.com/v3/__https://www.rfc-editor.org/rfc/rfc1866__;!!A69Ausm6DtA!cXofLVgdVtpc37THsFRU0XMLkddQpViT0iPILErgEsXJ5Ij0hkHgjayqKAMX3sQrCOK74wbouLMjDkb0ZJe5a55k2_bp$ > *Norman Branitsky* > Senior Cloud Architect > Tyler Technologies, Inc. Regards Alex > P: 416-916-1752 > C: 416.843.0670 > http://www.tylertech.com > Tyler Technologies

