[damned-lies/oscp] Forbid requests when originating host name is not correct



commit 02516e893e7183c851e814f0c31cbfe53accd157
Author: Claude Paroz <claude 2xlibre net>
Date:   Sun Mar 21 17:25:29 2021 +0100

    Forbid requests when originating host name is not correct

 httpd/l10n.gnome.org.conf | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/httpd/l10n.gnome.org.conf b/httpd/l10n.gnome.org.conf
index 449d47a0..11208d87 100644
--- a/httpd/l10n.gnome.org.conf
+++ b/httpd/l10n.gnome.org.conf
@@ -19,6 +19,11 @@
     AddType text/plain .po
     AddType text/plain .pot
 
+<Directory "/l10n/damnedlies/">
+    # Avoid sending request to Django when host is not correct.
+    Require expr %{HTTP_HOST} == "l10n.gnome.org"
+</Directory>
+
 <DirectoryMatch "/l10n/damnedlies/(static|damnedlies)">
     Options Indexes
     Require all granted


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]