Forum Discussion
rezgui_180607
Nimbostratus
Dec 24, 2014about not contain
is that correct?
if { $http_path contains ".jsp" && not($http_path contains "sample.jsp") } {Drop}
thanks in advance
nitass
Employee
Dec 24, 2014is that correct?
if-condition looks okay to me but d in drop should be in small letter.
anyway, to make it easier to read, you may code something like this.
e.g.
when HTTP_REQUEST {
set http_path [string tolower [HTTP::path]]
if { $http_path contains ".jsp" } {
if { not ($http_path contains "sample.jsp") } {
drop
} else {
Do something
}
} else {
Do something
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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