From 90ecd76492eca99466bb77c626fd8dfb100c832e Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sat, 23 Jan 2021 17:44:40 +0100 Subject: [PATCH] Tell robots to not index comments --- comments.go | 1 + 1 file changed, 1 insertion(+) diff --git a/comments.go b/comments.go index 7092dfe..182243c 100644 --- a/comments.go +++ b/comments.go @@ -38,6 +38,7 @@ func serveComment(blog string) func(http.ResponseWriter, *http.Request) { serveError(w, r, err.Error(), http.StatusInternalServerError) return } + w.Header().Set("X-Robots-Tag", "noindex") render(w, templateComment, &renderData{ BlogString: blog, Data: comment,