Forum Discussion

ScottA_6475's avatar
Icon for Nimbostratus rankNimbostratus
Mar 14, 2012

Custom rule to detect no User-Agent:

I am trying to create a custom ASM rule to determine if no user-agent string has been defined in the HTTP header. This seems like a simple task, but I can't get it to work. Here is what I have:






1 Reply

  • Hi Scott,



    The simplest option I can think of is to set User-Agent as a required header (under Policy | Headers | Mandatory Headers).



    If you want to block if the User-Agent (and all other) header(s) are present with no value, you could set 'Header name with no header value' for blocking.