Forum Discussion
Luis_Melendrez
Altostratus
Mar 29, 2017iRule allow specific URI and block any other
Hello
I am trying to create an irule that will allow justanexample.com/webaccess but be able to block any other URI such
justanexample.com/gateway justanexample.com/admin justanexample.com/access
There might be more that I don't know but I was thinking on using kind of a wildmask.
- Vijay_E
Cirrus
Try:
When HTTP_REQUEST { if { ([HTTP::host] eq "justanexample.com") and (not([string tolower [HTTP::uri]] eq "/webaccess")) } { reject } }
- Raj_Bhatia_1778
Nimbostratus
when HTTP_REQUEST priority 1 { if {[HTTP::path] starts_with "/webaccess"} { log local0. "[HTTP::path] Allowed.." } else { log local0. "[HTTP::path] not Allowed.." reject } }
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