JNeilson_117973
Jan 19, 2015Nimbostratus
iRule to allow one of two URIs block all others
I am trying to create an iRule that will allow a URL that contains: /!portal/240100000001001 or /!portal/240100000001002 and blocks all other variations.
I have tried using a data group with iRule and can only manage to get it to block all URLs. Can anyone help? For the data group I have tried both the full URL and /!portal/240100000001001
class MCEP_allowed_URIs { "/system/templates/selfservice/sunburst/!portal/240100000001001" "/system/templates/selfservice/sunburst/!portal/240100000001002" }
when HTTP_REQUEST { if { [ class match [string tolower [HTTP::uri]] contains MCEP_allowed_URIs ] } { Stop processing the iRule for this event here return else { drop } } }