Intercept status codes and redirect
I'm currently trying to find redirection mecanism based on status codes from server response. scenario is: Check for 2 two consecutive 401 status codes plus a 302 then a 200 + string in the 200 status code response. if these conditions are met => redirect to login page. Question 1: Is this possible with an irule? I did a simple 401 status check and I can see the status in the ltm log. Question 2: performance wise, will this bring the bigip to its knees with about 10.000 users a day? Question 3: what are my possibilities here? irule, access policy ...??
Here is the simple rule:
when HTTP_RESPONSE { if {[HTTP::status] eq "401"} { log local0. "401" }
}
If this is is possible then I will need help cooking an irule with variables and stuff :-)
the logic would be: 2 401 + 302 + 200 with 'accessdenied' string The simple version is just check for the string accessdenied but I'd like to my the check more reliable with the preceding 2 401 and 302+200 codes.