Al_Faller_1969
Dec 22, 2005Nimbostratus
dropping HTTP requests to "other" URIs
Hi All -
I am trying to make an iRule that drops a request that is not destined for any of 4 different directories. Here is what I have so far, which hasn't been working:
when HTTP_REQUEST {
if { not [HTTP::uri] starts_with "/dir1" and
not [HTTP::uri] starts_with "/dir2" and
not [HTTP::uri] starts_with "/dir3" and
not [HTTP::uri] starts_with "/dir4"} {
drop
}
}
What am I doing wrong? Thanks!
Al