1. A method comprising: intercepting a client request originating from a client device and destined for a server via a network, wherein the server is configured to perform a service in response to the client request, the client request comprising a request action and a request resource; determining whether the request action and the request resource of the client request matches a pattern action and a pattern resource of a pattern in a rule; based on a determination that the request action and the request resource of the client request matches the pattern action and the pattern resource, determining whether a threshold trigger condition in the rule is satisfied based, at least in part, on a first random value; based on a determination that the threshold trigger condition is satisfied, determining whether a reset condition in the rule is not satisfied, wherein the reset condition is based, at least in part, on at least one of the first random value, a second random value, and consecutive occurrences of a match between the request action and the request resource of the client request and the pattern action and the pattern resource of the pattern; and based on a determination that the reset condition is not satisfied, performing at least one rule action associated with the pattern, wherein performing the at least one rule action comprises returning an errored response back to the client device in response to the client request.