Forum Discussion
jtalkington_476
Nimbostratus
Sep 02, 2010Apache migration to iRule
Been handed the following from apache to migrate to an irule-
Only allow access to files in the following specific directories. The '[^/]+$' on
the end of each entry prevents any...
Hamish
Cirrocumulus
Sep 03, 2010Assuming I'm not misunderstanding your question, you could use a regular expression in an if statement... e.g.
if { [HTTP::uri] matches_regex {[^-A-Za-z0-9_/.()\]} } {
HTTP::redirect "/proxy_denied.txt"
}
You might want to verify the regex syntax matches what you want though (I didn't).
H
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