Forum Discussion
Ganesh_Sanap_23
Nimbostratus
Apr 21, 2019irule for uri while accessing from internet
Hello,
I am trying to achieve an irule while accessing url from internet is not allowed but after using uri part it should allowed. for eg. I have url https://abc.com which should be block from but when try https://abc.com/xyz/def/ghi/ should be allowed.
- Faruk_AYDIN
Altostratus
Hi Guy,
if you want to only allow urls starting with a specific path, use this:when HTTP_REQUEST { if { not ([string tolower [HTTP::uri]] starts_with "/xyz/def/ghi/") } { log local0. "Dropped: client:[IP::client_addr] uri:[HTTP::uri]" drop } }
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