Forum Discussion
Yann_Desmarest
May 03, 2016Cirrus
Hello,
Taken into account the remarks from Vernon and your issue, why not responding with a 403 status and content instead of rejecting the connection. Rejecting the connection may impact subsequent requests when there is some pipelining features activated or if you go through a web proxy or multiple reverse proxies before reaching the bigip.
when HTTP_REQUEST {
switch -glob [HTTP::path] {
"*/appsite1" { HTTP::respond 403 content "some html content explaining that the request is not allowed" }
}
}
If you have only this check to do, You may use of the "if" condition instead of switch.
- Joe_5599_134300May 04, 2016NimbostratusI only want the irule to fire when it sees the /appsite1 but not when it sees the /app. www.xyz.com/app/appsite1