Forum Discussion
Abdessamad1
Aug 31, 2018Cirrostratus
Another solution to this loop problem would be to remove all elements coming from the initial request that could cause the violation on the blocking response page. These could be in the Referer header or in the cookies.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/my-blocking-response-page" }{
if { [HTTP::header exists Referer] }{
HTTP::header remove Referer
}
foreach cookiename [HTTP::cookie names] {
switch -glob $cookiename {
"a-cookie-I-want-to-keep-1" -
"a-cookie-I-want-to-keep-2" {}
default {
HTTP::cookie remove $cookiename
}
}
}
}
}