Update the CrawlerProtection extension - #690
Merged
Merged
Conversation
Moves the Recommended Revisions pin from 344e7b3 to 1cddaaa, which carries CrawlerProtection 1.7.0 in place of 1.5.0. The change that reaches a wiki configuring nothing is that protection is now skipped in CLI and maintenance context: a maintenance script re-parsing a page that transcludes a protected special page used to trip the anonymous-user check and deny itself. The rest is opt-in — api.php and rest.php entry points can be protected via CrawlerProtectedApiModules and CrawlerProtectedRestPaths, both empty by default; the IP allowlist gains CrawlerProtectionTrustXForwardedFor and CrawlerProtectionTreatTempUsersAsAnon; and a CrawlerProtectionShouldDeny hook allows a bespoke access policy.
Merged
|
🐳 The image based on 3c33b3f7 commit has been built with |
yaronkoren
approved these changes
Aug 1, 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.
Moves the Recommended Revisions pin from
344e7b3to1cddaaa.1cddaaaCrawlerProtection 1.7.0 over the pinned 1.5.0:
api.phpandrest.phpentry points can now be protected, via$wgCrawlerProtectedApiModulesand$wgCrawlerProtectedRestPaths. Both default to empty, so they are inert until configured.$wgCrawlerProtectionTrustXForwardedForfor wikis whose proxy is not in$wgCdnServersNoPurge, and$wgCrawlerProtectionTreatTempUsersAsAnonfor temporary accounts.CrawlerProtectionShouldDenyhook for a bespoke access policy; denials are markednoindex,nofollow; the raw denial text moved to a message key, so it is translatable.Every new setting defaults to off or empty, and
requiresstays MediaWiki>= 1.39.4.Goes in ahead of the 3.5.20 release PR, which will then carry only the base image pin,
VERSIONand the release note.Fixes #689