Post Reply 
Something like “decentraleyes” for Privoxy…
Apr. 15, 2019, 05:15 AM
Post: #35
RE: Something like “decentraleyes” for Privoxy…
I think your code is bad.

(Apr. 12, 2019 08:38 PM)vlad_s Wrote:  
Code:
CLIENT-HEADER-FILTER: redirect-uri-u redirect-uri-u
[email protected](GET)\s+(https?:)//?[^,%]+\b(angularjs|jquery|modernizr|moment)(js)?/([0-9\.]+)/[a-z\-]+\b[^/]*\.js\s+(HTTP/\d+\.\d+)$@$1 https://192.168.2.1/decentraleyes/$3/$5/$[email protected]
[email protected](Host:)\s+.*$@$1 [email protected]

Privoxy is returning
Privoxy Wrote:Bad request. Messed up with header filters.


.jpg  PrivoxyResponse.jpg (Size: 46.26 KB / Downloads: 25)

.jpg  Network.jpg (Size: 91.48 KB / Downloads: 28)

Try something like:
Filter
Code:
CLIENT-HEADER-FILTER: redirect-uri-u redirect-uri-u
[email protected](GET)\s+(https?:)//?[^,%]+\b(angularjs|jquery|modernizr|moment)(js)?/([0-9\.]+)/[a-z\-]+\b[^/]*\.js\s+(HTTP/\d+\.\d+)$@$1 http://192.168.2.1/decentraleyes/$3/$5/$3.min.js HTTP/1.1 @i
[email protected](Host:)\s+.*$@$1 192.168.2.1 @i

SERVER-HEADER-FILTER: add-new-header-u add-new-header-u
[email protected]^(HTTP\/\d+\.\d+\s+.*)$@$1\nAccess-Control-Allow-Origin: *@i

Action
Code:
{+client-header-filter{redirect-uri-u} \
}
yastatic.net/jquery/2.1.4/jquery.min.js
{+server-header-filter{add-new-header-u} \
}
yastatic.net/jquery/


This worked for me:

Code:
CLIENT-HEADER-FILTER: redirect-uri-u redirect-uri-u
[email protected](GET)\s+(https?:)//?[^,%]+\b(angularjs|jquery|modernizr|moment)(js)?/([0-9\.]+)/[a-z\-]+\b[^/]*\.js\s+(HTTP/\d+\.\d+)$@$1 http://127.0.0.1:8443/decentraleyes/$3/$5/$3.min.js HTTP/1.1 @i
[email protected](Host:)\s+.*$@$1 127.0.0.1:8443 @i

SERVER-HEADER-FILTER: add-new-header-u add-new-header-u
[email protected]^(HTTP\/\d+\.\d+\s+.*)$@$1\nAccess-Control-Allow-Origin: *@i

Code:
{+client-header-filter{redirect-uri-u} \
}
yastatic.net/jquery/2.1.4/jquery.min.js
{+server-header-filter{add-new-header-u} \
}
yastatic.net/jquery/
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Something like “decentraleyes” for Privoxy… - JJoe - Apr. 15, 2019 05:15 AM

Forum Jump: