aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-03-18 18:44:55 +0300
committerGravatar Vitaly Takmazov2024-03-18 18:44:55 +0300
commit08db2e9e00019210489a9f0dd34bab74a4837ef5 (patch)
treed6255cf76cf22b9050c56d994b30c844cc409c43 /src/main
parent9e34f63f7921ba68bd63efc851f5a87518a682b5 (diff)
Add `noindex` directive to /login page
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java
index 47438900..3af6f2c2 100644
--- a/src/main/java/com/juick/www/controllers/Site.java
+++ b/src/main/java/com/juick/www/controllers/Site.java
@@ -110,6 +110,7 @@ public class Site {
model.addAttribute("tags", tagService.getPopularTags());
model.addAttribute("domain", webDomain);
model.addAttribute("tgBot", tgBot);
+ model.addAttribute("headers", "<meta name=\"robots\" content=\"noindex\"/>");
AuthenticationException authEx = (AuthenticationException) session
.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION);