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

[infra] feat: add a robots.txt for the API #1938

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GresilleSiffle
Copy link
Collaborator

@GresilleSiffle GresilleSiffle commented Mar 26, 2024

Description

This robots.txt disallows all API URLs, except /preview/, for all robots.

This should prevent robots respecting the Robots Exlusion Protocol to call API routes and potentially triggering latency alerts.

Checklist

  • I added the related issue(s) id in the related issues section (if any)
    • if not, delete the related issues section
  • I described my changes and my decisions in the PR description
  • I read the development guidelines of the CONTRIBUTING.md
  • The tests pass and have been updated if relevant
  • The code quality check pass

@GresilleSiffle GresilleSiffle self-assigned this Mar 26, 2024
@GresilleSiffle GresilleSiffle added Backend Back-end code of Tournesol Infra labels Mar 26, 2024
@GresilleSiffle GresilleSiffle marked this pull request as draft March 28, 2024 09:43
This robots.txt disallow all API URLs for all robots.

This should prevent robots respecting the Robots Exlusion Protocol
to call API routes and trigger latency alerts.
@GresilleSiffle
Copy link
Collaborator Author

I'm testing on staging to see if it has any impact on the behaviour of PetalBot, which seems to really like the route /preview/w/index.php from the API.

@GresilleSiffle GresilleSiffle marked this pull request as ready for review April 1, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Back-end code of Tournesol Infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant