301b Exam QuestionsBrowse all questions from this exam

301b 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?

Show Answer
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

1 comment
Sign in to comment
GVKDOption: D
Feb 6, 2024

D - Correct