07-Jun-2022 09:14
Hi F5ers, please maybe do you know how to do exceptions user-agent based?. I need to allow some user-agents to connect to my app. I review some KB but I cannot find this. Thanks.
07-Jun-2022 09:43
There is an irule example for stoping for URL and the same cane be done for the user-agent.
Disabling a violation for a URL using an iRule (f5.com)
when ASM_REQUEST_DONE {
if {[ASM::violation names] contains "VIOLATION_ILLEGAL_METHOD" and [HTTP::header "User-Agent"] contains "unsupoorted_browser"}
{
ASM::unblock
log local0. "ASM unblocking [HTTP::header "User-Agent"] "
}
}
07-Jun-2022 13:55
Thank you Nikolay, I'll try with your info. Thks..