Draft
Canonicalize multilingual special-page aliases and surface proxy block hints#70
Conversation
Co-authored-by: jeffw16 <11380894+jeffw16@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for multilingual special page translations
Canonicalize multilingual special-page aliases and surface proxy block hints
Jul 31, 2026
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.
Special-page protection only matched the configured name form, which could miss requests arriving through localized aliases. This change canonicalizes special-page names from the request path/title and exposes the content-language aliases on denied responses so reverse proxies can block equivalent URLs consistently.
Canonicalize multilingual special-page names
SpecialPageFactory::resolveAlias()Special:, localized namespace names, alias forms)Surface proxy-facing alias metadata
X-CrawlerProtection-Special-Page-Aliaseson denied special-page responsesSpecial:title plus known content-language aliases for that pageWire alias resolution through services
SpecialPageFactoryand content language intoCrawlerProtectionServiceRegression coverage
Example:
A request for either of these will now resolve to the same protected canonical page:
And denied responses include:
X-CrawlerProtection-Special-Page-Aliases: Special:WhatLinksHere, Spezial:Linkliste