Block empty user agent nginx

From DevOps Notebook
Revision as of 18:55, 8 October 2020 by MilosZ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Add into server block

if ($http_user_agent = "") { return 403; }