[Privoxy-users] forward-override based on user-agent tag does opposite of what it should

Synan B rsbernt at gmail.com
Wed Oct 25 12:10:19 CEST 2023


Hi again,

Thank you for you response & help.

Your suggestion as below was most helpful in tracking stuff down
 > add:   debug     4 # show tagging-related message

I have tracked the issue to HTTPS traffic not being passed to Privoxy, 
such as;
* HTTP traffic gets sent to Privoxy and I can see User Agent & Action 
Bits processed in the log as below (tested with http://neverssl.com)
* HTTPS traffic is bypassed even though I can see the spoofed User Agent 
in https://www.whatismybrowser.com
This is of course NOT an issue with Privoxy, I have to figure out why 
environment settings are not enforced in Ubuntu 22.04 desktop or by the 
individual browsers.

FOLLOW-UP QUESTION:
Is there a way to search for a specific string (like grep/regex) in the 
User Agent TAG with the PCRE language Privoxy uses, so that the 
forwarded UA is not nonsensical and is also not hard-coded? Something like:
TAG:^User-Agent: |/\b(|^User-Agent|||||AppleWebKit|)\b/|

I probably need to create a special filter for this to work?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/118.0.0.0 Safari/537.36

Thanks & Regards


*** Relevant log snippet ***
2023-10-25 12:32:13.734 7f6b07fff6c0 Actions: 
+change-x-forwarded-for{block} +client-header-tagger{css-requests} 
+client-header-tagger{image-requests} 
+client-header-tagger{range-requests} +client-header-tagger{user-agent} 
+deanimate-gifs{last} +forward-override{forward-socks5t 127.0.0.1:9050 
.} +handle-as-image +hide-accept-language{en-ca} 
+hide-from-header{block} +hide-referrer{block} +session-cookies-only 
+set-image-blocker{pattern}
2023-10-25 12:32:31.016 7f6b057fa6c0 Tagging: Tagger 'user-agent' added 
tag 'User-Agent: lmnopxyz'. Action bits updated accordingly.
2023-10-25 12:32:31.017 7f6b057fa6c0 Actions: 
+change-x-forwarded-for{block} +client-header-tagger{css-requests} 
+client-header-tagger{image-requests} 
+client-header-tagger{range-requests} +client-header-tagger{user-agent} 
+deanimate-gifs{last} +filter{refresh-tags} +filter{img-reorder} 
+filter{banners-by-size} +filter{webbugs} +filter{jumping-windows} 
+filter{ie-exploits} +forward-override{forward-socks5t 127.0.0.1:9050 .} 
+hide-accept-language{en-ca} +hide-from-header{block} 
+hide-referrer{block} +session-cookies-only +set-image-blocker{pattern}
2023-10-25 12:34:20.935 7f6b1e7b06c0 Tagging: Tagger 'user-agent' added 
tag 'User-Agent: lmnopxyz'. Action bits updated accordingly.


More information about the Privoxy-users mailing list