Skip to content

Commit

Permalink
Add robots
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Kelty committed Jul 29, 2021
1 parent e82568e commit 550d2d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .docker/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ server {
set $base /app;
root $base/web;

add_header X-Robots-Tag "noindex, nofollow";

location /robots.txt {
access_log off;
add_header Content-Type text/plain;
return 200 "User-agent: */\nDisallow: /\n";
}

# security
include craftcms/security.conf;

Expand Down

0 comments on commit 550d2d7

Please sign in to comment.