Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to Disallow Robots on a Subdomain

8 replies
Last updated: Nov 12, 2020
Hi, if I'm self-hosting the Sanity Studio on a subdomain, is there a way of preventing it from being crawled and indexed?
Nov 12, 2020, 12:35 PM
Note I’ve not tried this but this would be my first instinct
Nov 12, 2020, 1:51 PM
Thank you for the link, that looks useful. Will give it a try.
Nov 12, 2020, 3:07 PM
yes, the Studio is "just" a React SPA so conventional means of blocking indexing also apply.
Nov 12, 2020, 4:22 PM
But: I think that not indexing sanity studios is a pretty good default, so I made a PR to disallow indexing by robots:

https://github.com/sanity-io/sanity/pull/2125
Should be out in the next release!
Nov 12, 2020, 6:43 PM
Thanks for raising this,
user B
!
Nov 12, 2020, 6:43 PM
But: I think that not indexing sanity studios is a pretty sane default, so I made a PR to disallow indexing by robots:

https://github.com/sanity-io/sanity/pull/2125
Should be out in the next release!
Nov 12, 2020, 6:43 PM
Thanks for raising this,
user B
!
Nov 12, 2020, 6:43 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?