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, 2005Change those and's to or's, or you could try this:
when RULE_INIT {
array set ::valid_dir {
/dir1
/dir2
/dir3
/dir4
}
}
when HTTP_REQUEST {
if { ![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
