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

website: Add robots.txt for preview / past builds #12510

Open
4d62 opened this issue Dec 28, 2024 · 1 comment
Open

website: Add robots.txt for preview / past builds #12510

4d62 opened this issue Dec 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@4d62
Copy link
Contributor

4d62 commented Dec 28, 2024

Suggestion: Add a robots.txt similar to the following to prevent indexing of all preview/historical docs. Will prevent users getting outdated information.

User-agent: *
Disallow: /
@4d62 4d62 added the enhancement New feature or request label Dec 28, 2024
@4d62
Copy link
Contributor Author

4d62 commented Dec 28, 2024

Could be made with something like this if I'm not mistaken:

[[redirects]]
from = "/robots.txt"
to = "/robots-deny.txt"
status = 200
force = true

[[redirects]]
from = "/robots.txt"
to = "/robots-allow.txt"
status = 200
force = true
conditions = { Host = ["docs.goauthentik.io", ":docs.goauthentik.io"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant