(ISC)2
301B · Question #193
A web application requires knowledge of the client's true IP address for logging and analysis purposes. All instances of the application that can decode X-Forwarded-For HTTP headers reside in…
The correct answer is C. when HTTP_REQUEST { if {[HTTP::header exists X-Forwarded-For]} { pool pool_a } else { pool pool_b } }. See the full explanation below for the reasoning.
Question
A web application requires knowledge of the client's true IP address for logging and analysis purposes. All instances of the application that can decode X-Forwarded-For HTTP headers reside in pool_a, while pool_b instances assume the source IP is the true address of the client. Which iRule provides the proper functionality?
Options
- Awhen HTTP_DATA { if {[HTTP::header exists X-Forwarded-For]} { pool pool_a } else { pool pool_b } }
- Bwhen HTTP_RESPONSE { if {[HTTP::header exists X-Forwarded-For]} { pool pool_a } else { pool pool_b } }
- Cwhen HTTP_REQUEST { if {[HTTP::header exists X-Forwarded-For]} { pool pool_a } else { pool pool_b } }
- Dwhen HTTP_OPEN { if {[HTTP::header exists X-Forwarded-For]} { pool pool_a } else { pool pool_b } }
How the community answered
(32 responses)- A6% (2)
- B3% (1)
- C75% (24)
- D16% (5)
Community Discussion
No community discussion yet for this question.