We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84a46a commit 40e8e69Copy full SHA for 40e8e69
.changeset/late-teachers-jump.md
@@ -0,0 +1,5 @@
1
+---
2
+"gitbook": patch
3
4
+
5
+Disallow crawling by web-robots of search/ask URLs
packages/gitbook/src/routes/robots.ts
@@ -10,7 +10,10 @@ export async function serveRobotsTxt(context: GitBookSiteContext) {
10
const isRoot = checkIsRootSiteContext(context);
11
const lines = [
12
'User-agent: *',
13
+ // Disallow image resizing
14
'Disallow: /~gitbook/',
15
+ // Disallow dynamic routes / search queries
16
+ 'Disallow: /*?',
17
...((await isSiteIndexable(context))
18
? [
19
'Allow: /',
0 commit comments