Forum Discussion
Nuruddin_Ahmed_
Cirrostratus
Jun 14, 2016irule to allow specific url
Hi,
I am trying to allow only specific path of an URI and got this code from devcentral but its giving lot of errors
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
...
Yann_Desmarest_
Nacreous
Jun 14, 2016Hi,
Find below a working irule :
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/KURservlet/servlet/KURServlet" -
"/KURservlet-stage/servlet/KURServlet" -
"/KURservlet-test/servlet/KURServlet*" {}
default {
HTTP::redirect noserver "https://Ind-hyd.vidya.com/error/invalid.html
}
}
}
}
- Nuruddin_Ahmed_Jun 14, 2016
Cirrostratus
Hi Yann, Thanks for quick and as always the right reply :) i want to achieve one more thing here...lower the path string but i am getting the error in compling the rule when i try that.
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