Forum Discussion

Chris_Olson_172's avatar
Chris_Olson_172
Icon for Altostratus rankAltostratus
Oct 16, 2018

uri blocking using negative "not end with"?

I am very weak at irules and appreciate any help. The logic is: If (http request) does NOT include a trailing / in url https://beta.example.com/BOE/BI then stop the traffic. Else Continue

 

Is there an option to use a "not end with"? Something like the below?

 

when HTTP_REQUEST { if { ( [string tolower [HTTP::path]] not end with "/" ) } { TCP::close } }