Forum Discussion
Aapazmino1986
Jun 07, 2022Altostratus
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_dimitrov
Jun 07, 2022Employee
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"] "
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects