From 7036259806be404528fe7d56997ea2c45cf0cc46 Mon Sep 17 00:00:00 2001 From: MCJ Vasseur <14887731+vmcj@users.noreply.github.com> Date: Tue, 19 Nov 2024 08:18:05 +0100 Subject: [PATCH] Prevent indexing of DOMjudge instance See: https://github.com/DOMjudge/domjudge/issues/2654 --- .../ansible/roles/domserver/templates/nginx-domjudge-inner.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/provision-contest/ansible/roles/domserver/templates/nginx-domjudge-inner.j2 b/provision-contest/ansible/roles/domserver/templates/nginx-domjudge-inner.j2 index ada77723..a37c690b 100644 --- a/provision-contest/ansible/roles/domserver/templates/nginx-domjudge-inner.j2 +++ b/provision-contest/ansible/roles/domserver/templates/nginx-domjudge-inner.j2 @@ -67,6 +67,7 @@ add_header X-Frame-Options "DENY"; add_header Referrer-Policy "same-origin"; add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection "1; mode=block"; +add_header X-Robots-Tag "none" always; error_log /var/log/nginx/domjudge.log; access_log /var/log/nginx/domjudge.log dj_access;