BBlack has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/305053

Change subject: Chrome/41 fix: try 403
......................................................................

Chrome/41 fix: try 403

400 does prevent them from redirecting to and loading Main_page,
but isn't stopping them from repeatedly spamming requests to
slash.  May as well try some other error codes...

Bug: T141786
Change-Id: I00568f04287207d85b16fe835ab166354a9128a8
---
M templates/varnish/text-frontend.inc.vcl.erb
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/53/305053/1

diff --git a/templates/varnish/text-frontend.inc.vcl.erb 
b/templates/varnish/text-frontend.inc.vcl.erb
index 24f724f..cbae9ff 100644
--- a/templates/varnish/text-frontend.inc.vcl.erb
+++ b/templates/varnish/text-frontend.inc.vcl.erb
@@ -144,7 +144,7 @@
 sub cluster_fe_recv {
        // Experiment on dealing with a buggy UA that's spamming requests in 
T141786
        if (req.http.User-Agent ~ "Windows NT .*Chrome/41\.0\.2272\.76" && 
req.url == "/") {
-               <%= error_synth(400, "Buggy request, please report at 
https://phabricator.wikimedia.org/T141786";) -%>
+               <%= error_synth(403, "Buggy request, please report at 
https://phabricator.wikimedia.org/T141786";) -%>
        }
 
        // BITS: legacy bits.wm.o domain support

-- 
To view, visit https://gerrit.wikimedia.org/r/305053
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I00568f04287207d85b16fe835ab166354a9128a8
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: BBlack <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to