Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nginx/templates/site.erb

Issue 29408777: Issue 4894 - Block requests from mysterious adblocker that concentrates traffic on 21:00 UTC (Closed)
Patch Set: Created April 10, 2017, 8:26 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nginx/templates/site.erb
===================================================================
--- a/modules/nginx/templates/site.erb
+++ b/modules/nginx/templates/site.erb
@@ -72,6 +72,15 @@
root /usr/share/nginx/html;
}
+# https://issues.adblockplus.org/ticket/4894
+location /easylistchina+easylist.txt
+{
+ if ($http_user_agent = "")
+ {
+ return 400;
+ }
+}
+
if ($http_host ~ "^(.+)\.$")
{
set $canonical_host $1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld