Skip to content

Commit 123f437

Browse files
committed
add CrawlerProtection extension
Block bots with CrawlerProtection Lockdown extension is left installed, but the configuration is removed since currently it is not doing anything out of the box.
1 parent f9d4e87 commit 123f437

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

config/MezaCoreExtensions.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,13 @@ list:
218218
[30, 50], # past 30 days, limit 50
219219
[0, 50]
220220
];
221-
# # Currently has a problem with 1.43
222-
# # Crawler Protection
223-
# - name: CrawlerProtection
224-
# repo: https://github.com/Mywikis/CrawlerProtection
225-
# version: "main"
221+
222+
# Crawler Protection
223+
- name: CrawlerProtection
224+
repo: https://github.com/Mywikis/CrawlerProtection
225+
version: "main"
226+
config: |
227+
// no configuration is needed unless you want to block more pages
226228
227229
# CreateUserPage - Check if user has a page and if not creates it with the content {{User}}
228230
- name: CreateUserPage
@@ -434,12 +436,9 @@ list:
434436
version: "{{ mediawiki_default_branch }}"
435437
config: |
436438
# handle web crawlers
437-
# https://www.mediawiki.org/wiki/Handling_web_crawlers#Lockdown
438-
# get a full list of special pages via:
439-
# curl -s "[YOURWIKI]api.php?action=query&meta=siteinfo&siprop=specialpagealiases&format=json" | jq -r '.query.specialpagealiases[].aliases[]' | sort
440-
$wgSpecialPageLockdown['Recentchangeslinked'] = ['user'];
441-
$wgSpecialPageLockdown['WhatLinksHere'] = ['user'];
442-
$wgActionLockdown['history'] = [ 'user' ];
439+
# for SpecialPage handling, see CrawlerProtection extension
440+
# CrawlerProtection even handles actions like history, diff, etc.
441+
# $wgActionLockdown['history'] = [ 'user' ];
443442
444443
# LoginNotify - Notifies users about suspicious login attempts
445444
- name: LoginNotify

0 commit comments

Comments
 (0)