Forum Discussion

Dave_20370's avatar
Dave_20370
Icon for Nimbostratus rankNimbostratus
Mar 06, 2015

iRule - Option to Disable an Event for Specific Request Rather Than Entire Connection and Keep Connection Alive

I am resurrecting an old topic I believe. My question is similar to this old post: https://devcentral.f5.com/questions/how-to-disable-irule-processi ng-on-keep-alive-per-request-when-using-httprespond

 

We have a web platform in which all our traffic is first proxied through a third party CDN (Edgecast). To enhance performance, the CDN reuses connections for many requests. The problem we have is we are trying to implement an iRule that will block (respond with 403) certain requests based on a set criteria (user agent, URI path, IP, etc.) without closing the connection, but stop processing of other rules for the matched requests. Event disable appears to disable the event for the entire connection which impacts unblocked/valid requests.

 

I have verified with support that the feature request in the above referenced article was not implemented. Aside from setting a variable to prevent additional iRules from processing, is there a better recommended approach to achieve the goal to disable iRule processing for a specific request within the connection?

 

1 Reply

  • I think your suggestion about setting a variable or table entry is probably the best solution since the feature to disable it just for that request wasn't implemented.