From 0119f4a8a25d3ec9ba3aec078480ca708d54aff4 Mon Sep 17 00:00:00 2001 From: Sandy Spicer Date: Tue, 25 Jun 2024 08:42:57 -0700 Subject: [PATCH] feat: block robots from seeing shared dashboards (#23210) --- posthog/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/posthog/views.py b/posthog/views.py index 73ffd40462550..76a823762b656 100644 --- a/posthog/views.py +++ b/posthog/views.py @@ -80,7 +80,11 @@ def stats(request): def robots_txt(request): - ROBOTS_TXT_CONTENT = "User-agent: *\nDisallow: /shared_dashboard/" if is_cloud() else "User-agent: *\nDisallow: /" + ROBOTS_TXT_CONTENT = ( + "User-agent: *\nDisallow: /shared_dashboard/\nDisallow: /shared/" + if is_cloud() + else "User-agent: *\nDisallow: /" + ) return HttpResponse(ROBOTS_TXT_CONTENT, content_type="text/plain")