Forum Discussion
maximillean_953
Nimbostratus
Feb 13, 2014Irule related with static content filtering with more url after suffix
Hi,
when request come as /xyz/1.jpg it works perfectly and accept otherwise block.
But it also blocks /xyz/1.jpg?3123123213 request. I dont want this to happen. Should i use contains with images dat...
Kevin_Stewart
Employee
Feb 13, 2014Does the URI start with "/xyz"? If so, you can change that "ends_with" to a "starts_with". Otherwise you migt consider a "contains" operator.
Additionally, if this is a v10 system or higher, you're better off using the class match command instead of the now deprecated matchclass.
when HTTP_REQUEST {
if { [class match [stirng tolower [HTTP::uri]] starts_with images] } {
return
} else {
reject
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
