Skip to content

Commit

Permalink
build: Disallow /search/ in robots.txt (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Sep 26, 2024
1 parent 036ff86 commit 6e4e383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion k8s/iabweb/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ server {
}
location /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /admin/\n";
return 200 "User-agent: *\nDisallow: /admin/\nDisallow: /search/\n";
}
location @error_redirect {
proxy_pass http://127.0.0.1:8000;
Expand Down
2 changes: 1 addition & 1 deletion k8s/ietfweb/nginx-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ server {
}
location /robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /admin/\n";
return 200 "User-agent: *\nDisallow: /admin/\nDisallow: /search/\n";
}
location @error_redirect {
proxy_pass http://127.0.0.1:8000;
Expand Down

0 comments on commit 6e4e383

Please sign in to comment.