Forum Discussion
JRahm
Admin
Jan 22, 2026AppWorld DC Booth Kiosk Generator
Welcome to AppWorld, community! You may or may not be with us in person, but you can watch this thread for iRules that are either generated or described by the Distributed Cloud AI Assistant.
JimmyPackets
Cirrus
Mar 12, 2026AI-Generated iRule
Prompt: Rate-limit HTTP requests per client IP using a subtable, allowing 30 requests per 60 seconds
Generated iRule (by F5 Distributed Cloud AI Assistant):
when HTTP_REQUEST priority 500 {
# Extract the client IP address
set client_ip [IP::client_addr]
# Increment the request count for this IP in the rate_limit subtable
set req_count [table incr -subtable rate_limit -- $client_ip 1]
# Ensure the counter expires after 60 seconds
table timeout -subtable rate_limit -- $client_ip 60
# If the client has exceeded 30 requests in 60 seconds, respond with 429
if { $req_count > 30 } {
HTTP::respond 429 content "Rate limit exceeded" connection close
return
}
}
F5, Inc. ("F5") disclaims all liability in connection with any output generated by the AI Assistant ("Output") or use thereof, including without limitation any negative business impact caused by your use of Output to administer, direct, configure or control the operation and functioning of any F5 products. Output is provided "as is" without any warranties of any kind.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