Block empty user agent nginx

From DevOps Notebook
Revision as of 18:43, 8 October 2020 by MilosZ (talk | contribs) (Created page with "Add into server block <pre> if ($http_user_agent = "") { return 403; } </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Add into server block

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