Exam 301b All QuestionsBrowse all questions from this exam
Question 30

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?

    Correct Answer: D

    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]]" }}

Discussion
GVKDOption: D

D - Correct