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

Disable /authors shuffle sort for now #10023

Merged

Conversation

scottbarnes
Copy link
Collaborator

Closes #10022

Adds some rules that were uncommitted and probably useful. Also reorders some rules on the theory that matters.

Technical

Testing

Ensure the website still loads.

Screenshot

With these rules in place
image

Stakeholders

@cdrini

@scottbarnes scottbarnes force-pushed the help-manage-bots-hitting-authors branch from 4bd54d8 to 7cdf833 Compare November 12, 2024 21:00

# randomly sorting will be removed. For now just return 200
if ($is_random_sort = 1) {
return 200 "";
Copy link
Collaborator

@cdrini cdrini Nov 12, 2024

Choose a reason for hiding this comment

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

Note this is effectively indiscriminately returning 200 for all /authors requests with url param sort=random_.* . It would be nice if we could achieve this goal with a little less nginx config, but merging this as is for now because it's blocking deploys. (Took a look and was once again reminded the nginx configs are rather unpleasant to write :P )

Oh this is blocking the deploy due to too much traffic to this endpoint.

@cdrini cdrini merged commit 4a82cf5 into internetarchive:master Nov 12, 2024
3 checks passed
@cdrini cdrini changed the title Help slow down bots hitting /authors Disable /authors random sort for now Nov 12, 2024
@cdrini cdrini changed the title Disable /authors random sort for now Disable /authors shuffle sort for now Nov 12, 2024
@cdrini cdrini added the Temporary A pull request which we plan to undo at some point in the not-too-distant future label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Temporary A pull request which we plan to undo at some point in the not-too-distant future
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bots are ravaging /authors again
2 participants