Forum Discussion
ScottA_6475
Nimbostratus
Mar 14, 2012Custom 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:
content:!"User-Agent|3A|";
1 Reply
- hoolio
Cirrostratus
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.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
