Forum Discussion

jcarpenter82's avatar
jcarpenter82
Icon for Nimbostratus rankNimbostratus
Dec 18, 2024

Irule using a data group to bypass header injection

Trying to do a basic irule that looks at a data group and bypasses the header injection based on the data group uris. Been messing with the below but getting multiple errors when adding the top lines to bypass the existing irule posted below. Datagroup would be the uribypass

 

 

when HTTP_REQUEST {
    if { ([class match [HTTP::path] starts_with "uribypass"]) } {
        exit
    else {
        if { !([HTTP::header exists "test-Proxied" ]) } {
            HTTP::uri /test[HTTP::uri]
            # Inject custom header
            HTTP::header insert test-Proxied 1
        }
    }
}
}

No RepliesBe the first to reply