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 10, 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 {
# Define maximum allowed requests per client IP
set threshold 30
# Define the time window in seconds for rate limiting
set interval 60
# Identify the client IP
set client_ip [IP::client_addr]
# Define subtable name for this client
set table_name "req_count_${client_ip}"
# Increment request count for this client
set count [table incr -subtable $table_name -- $client_ip]
# On first request, set the timeout for this client's counter
if { $count == 1 } {
table timeout -subtable $table_name -- $client_ip $interval
}
# If request count exceeds threshold, respond with HTTP 429
if { $count > $threshold } {
HTTP::respond 429 content "Too Many Requests" noserver
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