Forum Discussion
Nov 20, 2013
Throttle incoming requests per minute
Hi Guys!
Trying to write an iRule that throttles incoming requests but I can't get this very simple example to work.
Basically my problem seems to be that the global connections variable never is bei...
Nov 21, 2013
Here's the sample rule I wrote to test the tables in case anyone else has the same issue.
Throttle number of requests per minute
when HTTP_REQUEST {
table add [IP::client_addr] 1 indefinite 10
if { [table incr [IP::client_addr]] > 4 } {
HTTP::respond 200 content "Too many"
} else {
HTTP::respond 200 content "OK"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects