For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

3 Replies

  • A server's response? Is the response a 30x redirect or URLs in the payload?

    when HTTP_REQUEST {
        HTTP::header remove Accept-Encoding
        STREAM::disable
    }
    when HTTP_RESPONSE {
        if { ( [HTTP::header exists Location ) and ( [HTTP::header Location] contains "https://" ) } {
            HTTP::header replace Location [string map -nocase {"https://" "http://"} [HTTP::header Location]]
        }
        if { [HTTP::header Content-Type] contains "text" } {
            STREAM::expression {@https://@http://@}
            STREAM::enable
        }
    }
    
  • when I copy this irule I get

     

    01070151:3: Rule [/Common/HTTPS-HTTP-Redirect] error: /Common/HTTPS-HTTP-Redirect:6: error: [parse error: PARSE missingBracket 114 {missing close-bracket}][{ ( [HTTP::header exists Location ) and ( [HTTP::header Location] contains "https://" ) }]

     

  • Forgot the trailing closing square bracket "]" in the HTTP::header exists Location statement.