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

Unified Diff: modules/filterserver/files/site.conf

Issue 29587634: #3924 - Redirect Samsung Internet requests from CN to include video ads (Closed) Base URL: https://hg1/infrastructure
Patch Set: Created Oct. 24, 2017, 12:20 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/filterserver/files/site.conf
===================================================================
--- a/modules/filterserver/files/site.conf
+++ b/modules/filterserver/files/site.conf
@@ -58,6 +58,24 @@
set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATION";
}
+### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4)
+if ($arg_application = "sbrowser")
+{
+ set $use_alternative_resource_flags "SBROWSER";
+}
+
+### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4)
+if ($arg_addonName = "adblockplussbrowser")
+{
+ set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBROWSER";
+}
+
+### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (3/4)
+if ($geoip_country_code = "CN")
+{
+ set $use_alternative_resource_flags "${use_alternative_resource_flags}+CN";
+}
+
if ($use_alternative_resource_flags = "BROWSER+LOCATION")
{
rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 redirect;
@@ -87,3 +105,8 @@
rewrite ^/ruadlist\+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break;
}
+### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4)
+if ($use_alternative_resource_flags = "SBROWSER+ABPSBROWSER+CN")
+{
+ rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_compliance+easylist.$1 break;
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld