kaoutar
Nov 03, 2020Cirrus
unblock filetype for specific URL with matching expression
Hi, I have created an iRule to unblock requests with the illegal filetype violation triggered and specially for those URI started with a specific value and the path matches a specific expression, but it doesn't work, can anyone help me
when ASM_REQUEST_DONE {
if { ([HTTP::uri] starts_with "/abc/") &&
([HTTP::path] matches_regex {*.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]})
&& ([ASM::violation count] >= 1)
&& [ASM::violation_data] contains "VIOLATION_OBJ_TYPE"} {
ASM::unblock
}}