BBlack has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/350098 )
Change subject: block ancient chrome
......................................................................
block ancient chrome
Fake UA used by some abuse traffic, block and see if it sticks
Change-Id: Ic50bfd7f01e0d0c8a8aa19f24b17a70d5a613d03
---
M modules/varnish/templates/text-frontend.inc.vcl.erb
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/98/350098/1
diff --git a/modules/varnish/templates/text-frontend.inc.vcl.erb
b/modules/varnish/templates/text-frontend.inc.vcl.erb
index 15c4a6c..ce12217 100644
--- a/modules/varnish/templates/text-frontend.inc.vcl.erb
+++ b/modules/varnish/templates/text-frontend.inc.vcl.erb
@@ -62,6 +62,10 @@
return (synth(403, "Noise"));
}
+ if (req.http.user-agent ~ "Chrome/12\.0") {
+ return (synth(403, "Noise"));
+ }
+
// FIXME: we're seeing an issue with Range requests and gzip/gunzip.
// Disable Range requests for now.
unset req.http.Range;
--
To view, visit https://gerrit.wikimedia.org/r/350098
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic50bfd7f01e0d0c8a8aa19f24b17a70d5a613d03
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