Forum Discussion
rkram_p
Altostratus
Feb 23, 2026Block specific URL's in APM
we have requirement to block particular URL's and URI. can we block URL and URI in the APM provisioned F5 device. Thanks, RK
Injeyan_Kostas
Nacreous
Feb 23, 2026Yes you can, even with just LTM
try something like this
when HTTP_REQUEST
{
switch -glob [ string tolower [HTTP::uri] ]
{
"/uri1" -
"/uri2"
{
drop
}
default
{}
}
}
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