Welcome! Log In Create A New Profile

Advanced

Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

Quintin Par
May 28, 2018 08:18AM
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
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

Quintin Par May 28, 2018 08:18AM

Re: Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

Aleksandar Lazic May 28, 2018 12:30PM

Re: Nginx: allow access to admin ONLY if the request has a secret header. Do this without the if-evil case.

Quintin Par May 29, 2018 01:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready