Cloudflare vs zero useragent

How to block zero useragent on Cloudflare ?
On nginx: if (http_user_agent ~ '^’) { return 444;}

AFAIK you cant to that (yet) on Cloudflare.

It wouldn’t surprise me if you could do this with Cloudflare Workers.

That you can probably do. I was referring to out of the box.

Enable rule 100004 in the Cloudflare WAF Rule set.

1 Like

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