Forum Discussion
Jinshu
Cirrus
Dec 14, 2015ASM to block a specific URI
Hi All,
I have to configure ASM to block a specific URI
/web-admin/admin/. Can anyone help with this please. I have configured it as disallowed url, no luck. Even I have created an irule and applied it, same result.
any idea?
The irule which I have created look like below.
when HTTP_REQUEST {
set reqBlock 0
if { ([HTTP::uri] contains "/web-admin/admin")} {
set reqBlock 1
}
}
when ASM_REQUEST_DONE {
if { $reqBlock == 1} {
ASM::raise FLOW_TO_OBJ
}
}
-Jinshu
1 Reply
- Hannes_Rapp
Nimbostratus
Hello,
You can use a Disallowed URL here, as you're trying - no need for any iRule magic. 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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