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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 root /var/www/easylist; 1 root /var/www/easylist;
2 keepalive_timeout 0; 2 keepalive_timeout 0;
3 charset utf-8; 3 charset utf-8;
4 gzip_static on; 4 gzip_static on;
5 default_type text/plain; 5 default_type text/plain;
6 6
7 # http://hub.eyeo.com/issues/262 7 # http://hub.eyeo.com/issues/262
8 location /filters/easylist-min.txt 8 location /filters/easylist-min.txt
9 { 9 {
10 proxy_cache filters; 10 proxy_cache filters;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 if ($arg_application = "com.ume.browser.global") 51 if ($arg_application = "com.ume.browser.global")
52 { 52 {
53 set $use_alternative_resource_flags "${use_alternative_resource_flags}+UME"; 53 set $use_alternative_resource_flags "${use_alternative_resource_flags}+UME";
54 } 54 }
55 55
56 if ($geoip_country_code = "DE") 56 if ($geoip_country_code = "DE")
57 { 57 {
58 set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATIO N"; 58 set $use_alternative_resource_flags "${use_alternative_resource_flags}+LOCATIO N";
59 } 59 }
60 60
61 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (1/4)
62 if ($arg_application = "sbrowser")
63 {
64 set $use_alternative_resource_flags "SBROWSER";
65 }
66
67 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (2/4)
68 if ($arg_addonName = "adblockplussbrowser")
69 {
70 set $use_alternative_resource_flags "${use_alternative_resource_flags}+ABPSBRO WSER";
71 }
72
73 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (3/4)
74 if ($geoip_country_code = "CN")
75 {
76 set $use_alternative_resource_flags "${use_alternative_resource_flags}+CN";
77 }
78
61 if ($use_alternative_resource_flags = "BROWSER+LOCATION") 79 if ($use_alternative_resource_flags = "BROWSER+LOCATION")
62 { 80 {
63 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 redirect; 81 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 redirect;
64 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 redirect; 82 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 redirect;
65 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 redirect; 83 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 redirect;
66 } 84 }
67 85
68 if ($use_alternative_resource_flags = "IE+LOCATION") 86 if ($use_alternative_resource_flags = "IE+LOCATION")
69 { 87 {
70 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break; 88 rewrite ^/easylist\.(.+) /easylist_noelemhide.$1 break;
71 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 break; 89 rewrite ^/easylistgermany\+easylist\.(.+) /easylistgermany_noelemhide+easylist _noelemhide.$1 break;
72 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break; 90 rewrite ^/easylistgermany\.(.+) /easylistgermany_noelemhide.$1 break;
73 } 91 }
74 92
75 if ($use_alternative_resource_flags = "ZTE") 93 if ($use_alternative_resource_flags = "ZTE")
76 { 94 {
77 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; 95 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
78 } 96 }
79 97
80 if ($use_alternative_resource_flags = "ZTE+UME") 98 if ($use_alternative_resource_flags = "ZTE+UME")
81 { 99 {
82 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break; 100 rewrite ^/exceptionrules\.(.+) /exceptionrules-minimal.$1 break;
83 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break; 101 rewrite ^/easylist\.(.+) /easylist-minimal.$1 break;
84 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break; 102 rewrite ^/easylistchina\.(.+) /easylistchina-minimal.$1 break;
85 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break; 103 rewrite ^/advblock\.(.+) /advblock-minimal.$1 break;
86 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina-minimal+easylist-minima l.$1 break; 104 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina-minimal+easylist-minima l.$1 break;
87 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break ; 105 rewrite ^/ruadlist\+easylist\.(.+) /ruadlist-minimal+easylist-minimal.$1 break ;
88 } 106 }
89 107
108 ### http://hub.eyeo.com/issues/3924 for Chinese SBrowser video exceptions (4/4)
109 if ($use_alternative_resource_flags = "SBROWSER+ABPSBROWSER+CN")
110 {
111 rewrite ^/easylistchina\+easylist\.(.+) /easylistchina+easylistchina_complianc e+easylist.$1 break;
112 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld