Forum Discussion
Yann_Desmarest
May 04, 2016Cirrus
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_134300May 04, 2016NimbostratusThanks, but none of these answers work.
- Yann_DesmarestMay 04, 2016CirrusThe provided irules works fine. Can you elaborate your needs ? I think I'm missing something
- Joe_5599_134300May 09, 2016NimbostratusI'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/* .