More realistically what you want to do is set up an action for each file type. If that's the case, then make sure the action is associated with the file type in the data group.
For instance:
class allowed_urls {
"temp.txt" {"action1"}
"users.txt" {"action2"}
}
etc.
Then you'd just need some code to act upon those things:
when HTTP_REQUEST {
set action [class match -value [string tolower [HTTP::uri]] equals allowed_urils]
if {$action ne ""}
do stuff $action
}
}
The only tricky part there is knowing which commands to use with the "$action" variable. I'm assuming they're all going to be similar actions though, like executing the pool command or something.
Colin