Forum Discussion
Dropping connections after a specific part of URI
- 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 } }
Thank you Oguzy for the quick response,
I tried this before but it drops the connection that I need to keep:
https://host.name.com/xyz/web/apx/ << need this to still function including the "/" at the end but anything after that "/" should be dropped.
Thats why I tried the "/*" as wildcard at the end as I don't have list of all the directories that comes after that but need to block all of them.
Any ideas will be highly appreciated.
- oguzyAug 05, 2021Cirrostratus
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 } }
Recent Discussions
Related Content
* 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