Forum Discussion
Exception of user-agent in ASM
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.
- nikolay_dimitrovEmployee
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"] "
}
} - Aapazmino1986Altostratus
Thank you Nikolay, I'll try with your info. Thks..
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com