From 9c4e02f565f5287fa68994a2bdb5429a2f0dd534 Mon Sep 17 00:00:00 2001 From: Adam Outler Date: Sun, 8 Feb 2026 02:33:11 +0000 Subject: [PATCH] Add 403 message which describes the problem --- front/403_internal.html | 65 +++++++++++++++++++ .../config/nginx/netalertx.conf.template | 1 + 2 files changed, 66 insertions(+) create mode 100644 front/403_internal.html diff --git a/front/403_internal.html b/front/403_internal.html new file mode 100644 index 00000000..cbbcc8cf --- /dev/null +++ b/front/403_internal.html @@ -0,0 +1,65 @@ + + + + + + Access Restricted - NetAlertX + + + +
+

403 Forbidden

+

+ The /server endpoint is for internal use only and cannot be accessed from external browsers or applications. +

+

+ This security measure protects the backend API. You will need to contact your system administrator in order to gain access to the API port (default: 20212), or use the application through the standard web interface. +

+ +
+ + \ No newline at end of file diff --git a/install/production-filesystem/services/config/nginx/netalertx.conf.template b/install/production-filesystem/services/config/nginx/netalertx.conf.template index 0dfbeb18..abe3e9e1 100755 --- a/install/production-filesystem/services/config/nginx/netalertx.conf.template +++ b/install/production-filesystem/services/config/nginx/netalertx.conf.template @@ -117,6 +117,7 @@ http { location /server/ { # 1. Enforcement + error_page 403 /403_internal.html; if ($is_trusted != "TRUSTED") { return 403; }