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...
jtalkington_476
Nimbostratus
Sep 03, 2010I tried this- the syntax APPEARS to be ok, but it doesn't seem to hit the statement when i enter special characters.
when HTTP_REQUEST {
set POOL Cis.fnf.com
if { [HTTP::path] matches_regex {[^-A-Za-z0-9_/.()\]} } {
HTTP::redirect "/proxy_denied.txt"
}
HTTP::respond 200 content "RuleSet2[HTTP::path]"
}
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