diff options
| -rw-r--r-- | packages/web/public/robots.txt | 5 | ||||
| -rw-r--r-- | packages/web/src/pages/s/[id].astro | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/packages/web/public/robots.txt b/packages/web/public/robots.txt new file mode 100644 index 000000000..f88eb1790 --- /dev/null +++ b/packages/web/public/robots.txt @@ -0,0 +1,5 @@ +User-agent: * +Allow: / + +# Disallow shared content pages +Disallow: /s/
\ No newline at end of file diff --git a/packages/web/src/pages/s/[id].astro b/packages/web/src/pages/s/[id].astro index 0e0170b66..430d50cfa 100644 --- a/packages/web/src/pages/s/[id].astro +++ b/packages/web/src/pages/s/[id].astro @@ -71,7 +71,7 @@ const ogImage = `${config.socialCard}/opencode-share/${encodedTitle}.png?model=$ tag: "meta", attrs: { name: "robots", - content: "noindex", + content: "noindex, nofollow, noarchive, nosnippet", } }, { |
