Forum Discussion
Kai_Wilke
Apr 23, 2019MVP
Hi ITNINJAWARROIOR,
try the iRule to allow just a few selected HOST-header values to pass through...
when HTTP_REQUEST {
switch -exact -- [string tolower [HTTP::host]] {
"www.domain.de" -
"www.domain.fr" -
"www.domain.com" {
Do nothing for white listed HOST-header values...
}
default {
Send 502 response for reuqests with unknown HOST-headers...
HTTP::respond 502 content "Bad Gateway" "Content-Type" "text/html" "Connection" "close"
}
}
}
Cheers, Kai