cancel
Showing results for 
Search instead for 
Did you mean: 

Exception of user-agent in ASM

Aapazmino1986
Nimbostratus
Nimbostratus

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.

2 REPLIES 2

nikolay_dimitrov
F5 Employee
F5 Employee

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"] "
}
}

Aapazmino1986
Nimbostratus
Nimbostratus

Thank you Nikolay, I'll try with your info. Thks..