keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

/keystatic route can be not indexed

Open solrik opened this issue 2 years ago • 2 comments

Expected Behaviour

website_url/keystatic should not be listed in search engine.

Actual Behaviour

website_url/keystaic now can be crawled and indexed by search engine.

Additional Context

  • When users creates a site, sometimes the unwanted routes are not added to robots.txt, and once crawled, google will index it even if the route is added in robots.txt later. To solve it, no-index could be added to keystatic route by default.
  • Users don't have to add it to the robots.txt manually.
  • Might avoid bots crawling in future.

Related reading

Google Dev Doc

solrik avatar Jul 07 '23 04:07 solrik

great suggestion @solrik, we should include this in all the starter templates 🙌

JPrisk avatar Jul 31 '23 04:07 JPrisk

You can add that in your robots.txt (Should help)

User-agent: *
Allow: /
Disallow: /keystatic/

t1gu1 avatar Apr 10 '24 21:04 t1gu1