F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

AbuAhmad's avatar
AbuAhmad
Icon for Nimbostratus rankNimbostratus
Aug 04, 2021
Solved

Dropping connections after a specific part of URI

Hi There, I need help to write an iRule that will drop the request for any request after this uri:   /xyz/web/apx/ pass this request but anything after that uri need to drop the request ( drop ...
  • oguzy's avatar
    oguzy
    Aug 05, 2021

    Hi AbuAhmad,

    I missed something sorry. Could you please try below one:

    when HTTP_REQUEST {
      if { [HTTP::uri] starts_with "/xyz/web/apx/" && not ([HTTP::uri] equals "/xyz/web/apx/") } {
         drop
     }
    }