Forum Discussion
Yann_Desmarest_
Nacreous
Hello,
Ok, you just need to replace "*/appsite1" by "/appsite1" to make it works your way.
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"/appsite1" { HTTP::respond 403 content "some html content explaining that the request is not allowed" }
}
}
and if you don't plan to add exceptions, you can use a simple if condition
when HTTP_REQUEST {
if { [HTTP::path] equals "/appsite1" } {
HTTP::respond 403 content "some html content explaining that the request is not allowed"
}
}
Joe_5599_134300
May 09, 2016Nimbostratus
I'm trying to only block, reject or provide message when connecting to the
www.xyz.com/app/appsite1, keyword (appsite1) and don't want to block anything when users connecting to www.xyz.com/app/* .