Repository navigation
Give filtered listings with three or fewer parameters their own rate budget - #225
Merged
Merged
Conversation
…budget The filtered-listing flood on 2026-11-30 ran at about 130 req/s from a residential proxy pool and kept the shared 15 req/s bucket empty, so readers and search crawlers using one or two filters got 429s. 99% of the flood's URLs carry five or more filters. Cloudflare now sets X-MUI-Shallow-Filter for requests with three or fewer query parameters (and strips it otherwise); a priority-110 router gives those a separate 10 req/s shared bucket. Deep combinations keep their existing limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rqqt7SRFvG48gttX6RQhfE
HarryCordewener
marked this pull request as ready for review
November 30, 2026 23:04
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.
Requested by Grave · project thread
Why
Cloudflare analytics for 2026-11-30 show 4.44M 429s on filtered
/gamesin 24h. For the last few hours the flood has run at about 130 req/s, while successful filtered responses held at 14.9 req/s, which is the 15 req/s shared cap. The traffic comes from a residential proxy pool across dozens of ASNs (FiberPower about 25%), and no single address sends more than about 0.2 req/s, so the per-IP limit almost never fires. The flood keeps the shared bucket empty, so readers and search crawlers using one or two filters get 429s. ClaudeBot, Bingbot, Applebot and others took 7,036 of them.99% of the flood's URLs carry five or more filters, while shallow requests (three or fewer parameters) total about 11k a day.
What
X-MUI-Shallow-Filter; the second sets it to1whenlen(http.request.uri.args.names) le 3.deploy/traefik/incident-limits.yml: adds amui-games-shallowrouter at priority 110, matching the same filtered-listing rule plus that header. It keeps the same per-client limit, with its own shared rate of 10 req/s (burst 20) and 10 requests in flight.docs/deploy.mddocuments both halves.Deploy
Pull in
/opt/muindex. The dynamic file is watched, so no restart is needed. Afterwards, check thatmui-games-shallow@fileappears in Traefik's access log for a one-filter/games?codebase=PennMUSHrequest.Generated by Claude Code