Forum Discussion
Al_Faller_1969
Nimbostratus
Dec 22, 2005dropping 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 HTT...
JRahm
Admin
Dec 22, 2005Try 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
}
}Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
