Hi Aaron
Colins example doesnt compile:
line 3: [undefined procedure: class] [class match -value [string tolower [HTTP::path]] equals blocked_list]
line 4: [missing a script after "if"] []
line 7: [command is not valid in the current scope] [}]
I don't want to define the list in the code but in the Data Group List tab (in the GUI under Local Traffic >> iRules >> Data Group List). Is this why its not updating?
Looking a again at Colins example, i want the same action to be performed for all strings in the Data Group List so i dont need to define the action until its found that the any of the strings in the list are in the url.
when HTTP_REQUEST {
set action [class match -value [string tolower [HTTP::path]] equals Portal_blocker_list]
if {$action ne ""}
do stuff
else set value "found"
}
}