Forum Discussion
Ghislain_Pellet
Nimbostratus
Jan 11, 2017Blocking Response Page seems to be blocked
We've set up a custom blocking response page on our site but it seems to be blocked when an illegal request is detected. The custom page is a contact form that, when filled by the client, enables us ...
Abdessamad1
Cirrostratus
Aug 31, 2018Another 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
}
}
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects