Skip to content

Allow certain specified ranges to bypass protections#28

Open
marijnvanwezel wants to merge 3 commits intomywikis:mainfrom
WikibaseSolutions:iprange-restriction-bypass
Open

Allow certain specified ranges to bypass protections#28
marijnvanwezel wants to merge 3 commits intomywikis:mainfrom
WikibaseSolutions:iprange-restriction-bypass

Conversation

@marijnvanwezel
Copy link
Copy Markdown

This pull request, when merged, allows an administrator to specify certain IP-ranges that can bypass the restrictions imposed by CrawlerProtection. This can be useful to e.g. allow internal networks or crawlers coming from certain tools.

The administrator can specify a number of IP-ranges to allow using $wgCrawlerProtectionAllowedIPs. For example:

$wgCrawlerProtectionAllowedIPs = [ '192.168.0.1' ]; // Allow only 192.168.0.1
$wgCrawlerProtectionAllowedIPs = [ '10.0.0.0/8', '172.16.0.0-172.31.255.255', '192.168.0.0/16' ]; // Allow local connections
$wgCrawlerProtectionAllowedIPs = [ '13.52.5.96/28' ]; // Allow some monitoring tool

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.

1 participant