Forum Discussion

sara_phx_135826's avatar
sara_phx_135826
Icon for Nimbostratus rankNimbostratus
Oct 16, 2013

Rate-Limiting Based on String

I'm trying to create an iRule in ASM that can help me rate-limit traffic based on the following:

 

anything requesting /unit-rates/ and /search-results/, 5 requests/second/ip and 10 requests/second/ip – delay

 

I was looking at the information about the tables command, but I'm having some trouble with understanding how to put this together when including strings as part of the traffic.

 

1 Reply

  • Take a look at the DNS flood protection iRule in the codeshare. Minor modifications should be necessary (HTTP_REQUEST instead of CLIENT_DATA) and you might not count at all unless HTTP::path contains /unit-rates/ or /search-results/. Take a shot and post back if you get stuck.