Forum Discussion
Luis_Melendrez
Altostratus
Jun 13, 2017Block URL directoy with irules
Is it possible to block https://example.com/gateway but allow https with irules?
- Ryannnnnnnnn
Altocumulus
Providing you have SSL offloading or bridging configured on your virtual server and a http profile applied then something similar to the following should do what you ask.
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] equals "/gateway" } { drop } }
- janholtz
Altostratus
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] ends_with "/gateway" } { drop }
- Snl
Cirrostratus
try as below as well
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/gateway/" } { log local0. "Rejecting "/gateway/* request" 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