Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.
Quintin Par
quintinpar at gmail.com
Mon May 28 12:16:59 UTC 2018
My website’s being hit hard and I am trying to see if I can limit this at
the load balancer (Nginx) level by cutting off requests that don’t have a
special header.
I’ve seen some solutions that involve the if statement, notably
https://stackoverflow.com/questions/18970620/nginx-reject-request-if-header-is-not-present-or-wrong
Can someone help me with a solution that does NOT involve using an if
statement?
- Quintin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180528/4f9d2830/attachment.html>
More information about the nginx
mailing list