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?
Note I’ve not tried this but this would be my first instinct
Thank you for the link, that looks useful. Will give it a try.
yes, the Studio is "just" a React SPA so conventional means of blocking indexing also apply.
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!
Thanks for raising this,
user B
!
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!
Thanks for raising this,
user B
!

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?