Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(seo): prevent contributors.txt from indexing and crawling #11149

Merged
merged 3 commits into from
May 27, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented May 17, 2024

Summary

(MP-1094)

Problem

We link to our /contributors.txt without indicating to search engines that these files shouldn't be crawled or indexed.

Solution

  1. Mark them with rel="nofollow".
  2. Return an X-Robots-Tag header.
  3. Disallow /*/contributors.txt via robots.txt.

How did you test this change?

  1. Ran yarn && yarn dev and verified the HTML of http://localhost:3000/en-US/docs/Web/HTML#related_topics
  2. Ran cd cloud-function && npm i && npm start and verified the HTTP headers of http://localhost:5100/en-US/docs/Web/HTML/contributors.txt

@caugner caugner requested a review from a team as a code owner May 17, 2024 19:23
@caugner caugner changed the title fix(seo): prevent contributors.txt from crawling fix(seo): prevent contributors.txt from indexing and crawling May 21, 2024
Copy link
Contributor

@argl argl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@argl argl merged commit 7164c71 into main May 27, 2024
15 checks passed
@argl argl deleted the MP-1094-prevent-contributors-txt-crawling branch May 27, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants