QuestionQ184

Identify and Resolve Application Issues

A customer must intercept every redirect that its application sends to clients. When a redirect matches, the customer must log a message that includes the client IP address.

Which iRule should be used?

  • A when HTTP_RESPONSE { if { [HTTP::is_3xx] } { log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" } }
  • B when HTTP_REQUEST { if { [HTTP::is_301] } { log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" } }
  • C when HTTP_REQUEST { if { [HTTP::is_redirect] } { log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" } }
  • D when HTTP_RESPONSE { if { [HTTP::is_redirect] } { log local0. "redirecting client ip address [IP::addr [IP::remote_addr]]" }
Explanation

HTTP_RESPONSE runs when BIG-IP parses the status and headers of the application’s response. HTTP::is_redirect returns true for redirect responses, including 301, 302, 303, 305, and 307, allowing the rule to log the client address for each matched redirect.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!