Forum Discussion
Jinshu_134425
Nimbostratus
Feb 26, 2016How to block URI in ASM
Hello,
I am trying to configure a wildcard entry for URI whihc nees to block
/myservices/admin/*
. This means anything which comes after /admin
should get blocked.
I have tried in disallowed URI but it is only allowing explicit values. How can we configure '
*
' in this. Please help.
-
1 Reply
- Jinshu
Cirrus
I have solved the issue now.
I have created below irule and enabled irule event in ASM policy. Also i have created a custom violation named as
Illegal_Url_Access
when HTTP_REQUEST { set reqBlock 0 if { ([[string tolower [HTTP::uri]] contains "/myservices/admin")} { set reqBlock 1 } } when ASM_REQUEST_DONE { if { $reqBlock == 1} { ASM::raise Illegal_Url_Access } }
-Jinshu
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