Skip to content

Address feedback: add $wgCrawlerProtectionProtectRevisions to independently control revision/diff blocking#32

Merged
jeffw16 merged 2 commits into
copilot/fix-crawler-protection-historyfrom
copilot/wip-address-feedback-history-blocking
Jun 19, 2026
Merged

Address feedback: add $wgCrawlerProtectionProtectRevisions to independently control revision/diff blocking#32
jeffw16 merged 2 commits into
copilot/fix-crawler-protection-historyfrom
copilot/wip-address-feedback-history-blocking

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown

Thanks for the feedback on #30. I've created this new PR, which merges into #30, to address your comment. I will work on the changes and keep this PR's description up to date as I make progress.

Original PR: #30
Triggering review: #30 (review)

Changes Made

  • New config variable $wgCrawlerProtectionProtectRevisions (default true): when true, anonymous access to individual revisions and diffs (type=revision, diff=, oldid= query parameters) is denied; when false, those requests are allowed. This control is fully independent of $wgCrawlerProtectedActions, so operators can protect revisions/diffs without protecting the history-listing page, or vice versa.
  • CrawlerProtectionService: replaced the old logic that gated revision/diff blocking on 'history' being present in CrawlerProtectedActions with a direct read of the new CrawlerProtectionProtectRevisions config key.
  • Tests: updated buildService() helper to accept a $protectRevisions parameter; updated the existing "allows history-related when not configured" test; added new test cases covering all cross-combinations of the two independent controls.
  • README: documented $wgCrawlerProtectedActions and the new $wgCrawlerProtectionProtectRevisions variable.

Copilot AI changed the title [WIP] [WIP] Address feedback on history-related blocking for $wgCrawlerProtectedActions Address feedback: add $wgCrawlerProtectionProtectRevisions to independently control revision/diff blocking Jun 18, 2026
Copilot AI requested a review from jeffw16 June 18, 2026 23:15
@jeffw16 jeffw16 marked this pull request as ready for review June 19, 2026 03:35
@jeffw16 jeffw16 merged commit a181220 into copilot/fix-crawler-protection-history Jun 19, 2026
14 checks passed
@jeffw16 jeffw16 deleted the copilot/wip-address-feedback-history-blocking branch June 19, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants