Prevent bot visits to a few action urls via robots.txt#8913
Merged
gbp merged 2 commits intomysociety:developfrom Nov 26, 2025
Merged
Prevent bot visits to a few action urls via robots.txt#8913gbp merged 2 commits intomysociety:developfrom
gbp merged 2 commits intomysociety:developfrom
Conversation
58d133a to
f1a78b2
Compare
Contributor
Author
|
@gbp Using this trivial PR as an exercise for me to check if I've got the PR process right, before sending some more substantial ones :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relevant issue(s)
Relates to #8132 and PR #8223
What does this do?
It adds a number of action links as disallowed for bots. Not all bots seem to respect
robots.txtso a redundant approach is probably best, hence the overlap with #8223.Why was this needed?
A lot of bot traffic is hitting our site on these urls, without actually providing any useful content to bots, but still causing server load. In some cases (
/trackfor instance) the page visit creates a database record which is completely useless and uses up disk space. This aims at reducing this side effect.Implementation notes
Screenshots
Notes to reviewer
Have you updated the changelog? If this is not necessary, put square brackets around this: skip changelog