A customer needs to intercept all of the redirects its application is sending to clients. When a redirect is matched, the customer needs to log a message including the client IP address.
Which iRule should be used?
- when HTTP_RESPONSE {
if { [HTTP::is_3xx] } {
log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }
} - when HTTP_REQUEST {
if { [HTTP::is_301] } {
log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }
} - when HTTP_REQUEST {
if { [HTTP::is_redirect] } {
log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }
} - when HTTP_RESPONSE {
if { [HTTP::is_redirect] } {
log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }
}
Reveal Solution Next Question