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!
Mozilla/5.0
also (useragentstring.com/pages/…). Maybe you are not seraching for the right string within user-agent ?