Forum Discussion
rezgui_180607
Nimbostratus
Dec 19, 2014create a white list
Dear members,
im a beginner in the developpemnt of the irule.
i would like an example to autrourise all url contain .jsp and then to bloc some url like Sample.js.
Best regards
nitass
Employee
Dec 19, 2014what about something like this?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"*sample.htm" -
"*sample.html" -
"*sample.js" {
reject
}
"*.htm" -
"*.html" -
"*.jsp" {
Do nothing (allow)
}
default {
Do something
}
}
}
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