Forum Discussion
Stanislas_Piro2
Sep 15, 2017Cumulonimbus
try this code:
when HTTP_REQUEST {
if { ([HTTP::host] equals "testing.dff.com") && ([HTTP::uri] starts_with "/tnr" || [HTTP::uri] starts_with "/enr" } {
if { ![class match [IP::client_addr] equals Internal]}
log local0. "client IP: [IP::client_addr] - redirected to maintenance Page"
HTTP::redirect "/maintenancePage.html"
}
}
}