Added webmentions endpoint to robots.txt disallow (#19433)

fixes PROD-290

- in order to receive webmentions (e.g. recommendations), Ghost sites
expose a /webmentions/receive endpoint. This endpoint is wrongly being
indexed by Google as a regular page, and causes indexing errors in
Google Search Console
This commit is contained in:
Sag 2024-01-03 14:30:37 -03:00 committed by GitHub
parent 668e51e631
commit 1f5a42d34c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -4,3 +4,4 @@ Disallow: /ghost/
Disallow: /p/
Disallow: /email/
Disallow: /r/
Disallow: /webmentions/receive/

View File

@ -326,7 +326,8 @@ describe('Default Frontend routing', function () {
'Sitemap: http://127.0.0.1:2369/sitemap.xml\nDisallow: /ghost/\n' +
'Disallow: /p/\n' +
'Disallow: /email/\n' +
'Disallow: /r/\n'
'Disallow: /r/\n' +
'Disallow: /webmentions/receive/\n'
);
});