0

I'm a completely F5 newbie F5 trying to script an iRules to log the HTTP Headers if the User-Agent contains "Mozilla":

when HTTP_REQUEST_RELEASE {

    if { [HTTP::header "User-Agent"] contains "Mozilla" } {

        foreach x [HTTP::header names] {
            log local0. "$x: [HTTP::header $x]"
        }           

    }
}

Any help is welcomed!

2
  • What is not working as expected with your code ? What result do you expect ? IE11 returns Mozilla/5.0 also (useragentstring.com/pages/…). Maybe you are not seraching for the right string within user-agent ?
    – krisFR
    Sep 14, 2018 at 20:27
  • It's returning every HTTP request, I guess filtering is not working.
    – Andre
    Sep 20, 2018 at 14:05

0

You must log in to answer this question.

Browse other questions tagged .