Forum Discussion
Sameer_Srivasta
Nimbostratus
Jun 18, 2018ASM: 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>Di...
Anesh
Cirrostratus
Jun 18, 2018try
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
}
}
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
