diff --git a/templates/flag.html.twig b/templates/flag.html.twig
index b7080a1..da080f0 100644
--- a/templates/flag.html.twig
+++ b/templates/flag.html.twig
@@ -31,5 +31,8 @@ action_class
] %}
{% set attributes = attributes.addClass(classes) %}
+{# Set nofollow to prevent search bots from crawling anonymous flag links #}
+{% set attributes = attributes.setAttribute('rel', 'nofollow') %}
+
{{ title }}
{% endspaceless %}