We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e27d2d commit 820d065Copy full SHA for 820d065
includes/Hooks.php
@@ -104,6 +104,11 @@ public function onSpecialPageBeforeExecute( $special, $subPage ) {
104
$protectedSpecialPages = $config->get( 'CrawlerProtectedSpecialPages' );
105
$customDenialHeader = $config->get( 'CrawlerProtectionDenialHeader' );
106
$customDenialText = $config->get( 'CrawlerProtectionDenialText' );
107
+ $use418 = $config->get( 'CrawlerProtectionUse418' );
108
+ if ( $customDenialHeader === null && $customDenialText === null && $use418 ) {
109
+ $customDenialHeader = 'HTTP/1.0 I\'m a teapot';
110
+ $customDenialText = 'I\'m a teapot';
111
+ }
112
113
// Normalize protected special pages: lowercase and strip 'Special:' prefix
114
$normalizedProtectedPages = array_map(
0 commit comments