Skip to content

Commit

Permalink
Prevent indexing by search engines by default
Browse files Browse the repository at this point in the history
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: DOMjudge#2654
  • Loading branch information
vmcj committed Nov 19, 2024
1 parent cb99f6c commit 7c890e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/nginx-conf-inner.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ server_name _default_;
# set max upload size to infinite since PHP has a setting for this
client_max_body_size 0;

# Prevent indexing by robots
add_header X-Robots-Tag "none" always;

# Variables used in the nginx configuration
set $domjudgeRoot @domserver_webappdir@/public;
# Set this to '' instead of /domjudge when running in the root of your system
Expand Down

0 comments on commit 7c890e8

Please sign in to comment.