Skip to content

Conversation

@Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 23, 2025

Remove conditional blocking based on user-agent and IP address blocklists. Now all requests exceeding max_allowed_page_offset are blocked when the endpoint uses .limit_page_numbers(), regardless of the requesting client's identity.

This simplifies the pagination logic and removes the need for maintaining blocklists while still protecting against performance issues from deep pagination.

Remove conditional blocking based on user-agent and IP address
blocklists. Now all requests exceeding `max_allowed_page_offset` are
blocked when the endpoint uses `.limit_page_numbers()`, regardless of
the requesting client's identity.

This simplifies the pagination logic and removes the need for
maintaining blocklists while still protecting against performance
issues from deep pagination.
@Turbo87 Turbo87 requested a review from a team October 23, 2025 16:41
@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 23, 2025
Copy link
Contributor

@LawnGnome LawnGnome left a comment

Choose a reason for hiding this comment

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

We discussed this in person and I agreed that we should do this, but for the record: 👍

Copy link
Contributor

@eth3lbert eth3lbert left a comment

Choose a reason for hiding this comment

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

This also makes sense to me! It seems like the simplest and most effective way to approach this 👍

@Turbo87 Turbo87 merged commit ce86238 into rust-lang:main Oct 27, 2025
10 checks passed
@Turbo87 Turbo87 deleted the block-high-page-numbers branch October 27, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants