How to add rules firewall user-agent == empty

in the logs, I noticed that on my site there are hosts in which there is no user-agent header, it is equal to none.
How do I add this rule so that it also works for a user who does not have this header?

such a record blocks all ip

You used Contains instead of Equals. That might be it.

1 Like

And if you have a Pro (or above account), it’s already available in the WAF:

thank you worked

1 Like

Well…I expect it’s stopped blocking all IPs, but is it now blocking missing User Agent Strings?

yes that’s right, now if the user-agent == header is None, it blocks such a request, and if it misses the beginning of the line (Mozilla/5.0 (Windows NT 6.1…), it passes as successful

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.