Forum Discussion
samstep
Jul 30, 2017Cirrocumulus
You can do it with an iRule which checks the User-Agent Header to be the one you want to white-list and then unblocks that request using ASM::unblock
Here is a sample iRule (replace 'My Magic User Agent' with User-Agent you need):
when ASM_REQUEST_DONE {
foreach {viol} [ASM::violation names] {
if { $viol eq "VIOLATION_ILLEGAL_GEOLOCATION" } {
if { [HTTP::header "USER-AGENT"] contains "My Magic User Agent" } {
ASM::unblock
}
}
}
}
Hope this helps,
Sam
P.S. Remember to enable 'Trigger ASM iRule Events' in your policy properties!