BBlack has submitted this change and it was merged. Change subject: temporarily block an abusive search query... ......................................................................
temporarily block an abusive search query... Change-Id: I0adc35fafdc59a91d02414cae0b896630a1711dc --- M templates/varnish/text-frontend.inc.vcl.erb 1 file changed, 3 insertions(+), 0 deletions(-) Approvals: BBlack: Verified; Looks good to me, approved jenkins-bot: Verified diff --git a/templates/varnish/text-frontend.inc.vcl.erb b/templates/varnish/text-frontend.inc.vcl.erb index b0815c5..c339a66 100644 --- a/templates/varnish/text-frontend.inc.vcl.erb +++ b/templates/varnish/text-frontend.inc.vcl.erb @@ -76,6 +76,9 @@ if (req.request == "POST" && req.url ~ "index\.php\?option=com_jce&task=plugin&plugin=imgmanager&file=imgmanager&method=form&cid=") { error 403 "Noise"; } + if (req.url ~ "^/w/api.php\?srsearch=Sju\+svarta" && req.http.User-Agent ~ "wikipedia") { + error 403 "Stop doing this :p"; + } } sub vcl_recv { -- To view, visit https://gerrit.wikimedia.org/r/206459 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0adc35fafdc59a91d02414cae0b896630a1711dc Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: BBlack <bbl...@wikimedia.org> Gerrit-Reviewer: BBlack <bbl...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits