Skip to content

Commit 7c890e8

Browse files
committed
Prevent indexing by search engines by default
Some search engines trigger the markdown-preview which is POST only so we would get sentry errors for this. That lead to the discussion that we don't want search engines to index DOMjudge instances without the user specifically choosing this. Fixes: #2654
1 parent cb99f6c commit 7c890e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

etc/nginx-conf-inner.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ server_name _default_;
88
# set max upload size to infinite since PHP has a setting for this
99
client_max_body_size 0;
1010

11+
# Prevent indexing by robots
12+
add_header X-Robots-Tag "none" always;
13+
1114
# Variables used in the nginx configuration
1215
set $domjudgeRoot @domserver_webappdir@/public;
1316
# Set this to '' instead of /domjudge when running in the root of your system

0 commit comments

Comments
 (0)