Forum Discussion
ASM: block a specific URL
Hi i want to block a specific URL, example: xzy.abc.com/aaa/bbb/ddd/* and allow every thing else like xyz.abc.com/* through ASM, i have tried disallowing the URL(Security>Application Security>URLs>Disallow URLs) but did not work. Please help.
5 Replies
- Anesh
Cirrostratus
Did you check your Policy Blocking Settings? Does it have Block checkbox selected for "Illegal URL"? If not, go ahead and select it, apply the policy changes, and you're done.
- Erik_Novak
Employee
Go to Security ›› Application Security : URLs : Disallowed URLs : Disallowed HTTP URLs and add the specific URI you wish to block.
- nathe
Cirrocumulus
Confirm you're not in transparent mode
- Anesh
Cirrostratus
try
create a custom violation named as Illegal_Url
when HTTP_REQUEST { set reqBlock 0 if { ([[string tolower [HTTP::uri]] contains "/aaa/bbb/ddd/")} { set reqBlock 1 } } when ASM_REQUEST_DONE { if { $reqBlock == 1} { ASM::raise Illegal_Url } } - Stanislas_Piro2
Cumulonimbus
Did you enable Trigger ASM iRule event in your ASM policy?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
