Forum Discussion
AbuAhmad
Aug 05, 2021Nimbostratus
Dropping connections after a specific part of URI
Hi There, I need help to write an iRule that will drop the request for any request after this uri: /xyz/web/apx/ pass this request but anything after that uri need to drop the request ( drop ...
- Aug 05, 2021
Hi AbuAhmad,
I missed something sorry. Could you please try below one:
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/xyz/web/apx/" && not ([HTTP::uri] equals "/xyz/web/apx/") } { drop } }
AbuAhmad
Aug 06, 2021Nimbostratus
Thank you Oguzy so much for your help, this one worked as requested. I added to it "HTTP::respond 403" instead of "drop" to give a meaningful message.
The client came back saying they can't block everyone passed apx/ :(
So I am going to use data groups to block certain directories until they provide the full list.
Thanks again for the help Oguzy.
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