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?
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?
To intercept all redirects and log a message with the client IP address, it is necessary to capture the HTTP response using HTTP_RESPONSE. The correct condition to check for any redirect is HTTP::is_redirect. The correct iRule is when HTTP_RESPONSE { if { [HTTP::is_redirect] } { log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }}
D - Correct