AlexB18
Sep 03, 2024Nimbostratus
iRule not working for URI Block
I have a virtual server www.xyz.com hosted on LTM for HTTPS service
and i'm looking to block (403 response) one of the application URI which is https://www.xyz.com/MW/entryPoint.htm
I tried below irule but its not working .
when HTTP_REQUEST {
if { [HTTP::has_responded] } { return }
if {[string tolower [HTTP::host]] contains "www.xyz.com" && [string tolower [HTTP::uri]] eq "/MW/entryPoint.htm" } {
HTTP::respond 403
return
}
}
Any suggestions appreciated. Thanks.