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 Jun 25, 2024
1 parent a37f1e2 commit 562b0d1
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 562b0d1

Please sign in to comment.