Forum Discussion
Oct 28, 2020
Hi mikey_webb,
Can you try using "HTTP::has_responded"?
when HTTP_REQUEST {
if { HTTP::has_responded } { return }
switch [whereis [IP::client_addr] country] {
"GB" {
HTTP::redirect "https://uk.abc.com/"
return
}
"AU" {
HTTP::redirect "https://intl.abc.com/aus"
return
}
"US" {
HTTP::redirect "https://intl.abc.com/usa"
return
}
"CA" {
HTTP::redirect "https://intl.abc.com/can"
return
}
default {
HTTP::redirect "https://uk.abc.com/"
return
}
}
}