Skip to content

Commit

Permalink
feat: block robots from seeing shared dashboards (#23210)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspicer authored and timgl committed Jun 27, 2024
1 parent 5129bf9 commit 0119f4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion posthog/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit 0119f4a

Please sign in to comment.