Forum Discussion

eagertolearn's avatar
eagertolearn
Icon for Nimbostratus rankNimbostratus
Aug 24, 2024

F5 ASM User Agent handling

Hello Experts, 

 

How to allow user-agents (Example : mogilla, ucf, any custom user agent, android browser) on F5 ASM if it is blocked by ASM.  We checked some articles where it is suggested to block the user agent via iRule. but in our case we want to control the same through ASM itself.

 

Rgds

 

  • Hello,

    The options are:

    1. iRule to drop requests. If you want to keep track of how many requests are dropped by the iRule, you can create a Statistics profile that increments by 1 every time the iRule event is triggered. I can post more details about this if you want, but I do this for a different situation and have a cron job that logs the amount of hits each day, then resets the counter.
    2. Create a custom ASM Attack Signature for "Matched Element Header, Matched Criteria <custom user agent>" 
    3. Create a custom Bot Signature for "User Agent contains <custom user agent>" 

    Whatever option you choose, make sure you test it in a dev environment first, or an attack signature set that is only set to alarm.