From 50e9f3470e2ba003c14b9f03e37a2c0fe51701a8 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Wed, 10 May 2023 00:38:21 +0400 Subject: [PATCH] Deny everyone but my network to access admin page for a guestbook. --- configs/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configs/nginx.conf b/configs/nginx.conf index 768da04..28a4db5 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -29,6 +29,11 @@ server { proxy_set_header Schema $scheme; } + location /guestbook/admin { + allow 192.168.144.0/25; + deny all; + } + location /api/captcha/ { limit_req zone=captcha_api nodelay;