Forum Discussion
JRahm
Dec 22, 2005Admin
Try a class instead. I added a log string to check to make sure the class is populated.
class valid_dir {
"/dir1"
"/dir2"
"/dir3"
"/dir4"
}
when HTTP_REQUEST {
log "Valid directories: $::valid_dir"
if { not [matchclass [string tolower [HTTP::uri]] starts_with $::valid_dir] } {
discard
}
}