[Privoxy-users] Privoxy Ignores Last Rule

privoxy at use.startmail.com privoxy at use.startmail.com
Thu Jun 16 13:47:02 UTC 2022


Hi Lee,

thx for digging the matter.

Unfortunately, it does not work.

I've made sure of the two-line codes both for user.filter and action files.

Here's the Safari output:

```

Safari ne parvient pas à se connecter au serveur proxy
Safari ne parvient pas à ouvrir la page. Erreur : « L’opération n’a pas 
pu s’achever. (kCFErrorDomainCFNetwork erreur 310). » 
(kCFErrorDomainCFNetwork:310)

```

Here's the Privoxy output:

```

2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'GET 
http://config.privoxy.org/apple-touch-icon-precomposed.png HTTP/1.1' 
(size 71) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 1 hits (new 
size 50).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'Host: 
config.privoxy.org' (size 24) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 24).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'Accept: */*' 
(size 11) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 11).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'User-Agent: 
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 
Firefox/59.0' (size 90) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 90).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'Accept-Language: 
en-US' (size 22) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 22).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'Accept-Encoding: 
gzip, deflate' (size 30) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 30).
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: filtering 'Connection: 
keep-alive' (size 22) with 'switch-apple-touch-icon' ...
2022-06-16 14:32:53.914 70000e7f8 Re-Filter: ... produced 0 hits (new 
size 22).
2022-06-16 14:32:53.914 70000e7f8 Redirect: Rewrite detected: GET 
http://config.privoxy.org/favicon.ico HTTP/1.1
2022-06-16 14:32:53.914 70000e7f8 Request: config.privoxy.org/favicon.ico
2022-06-16 14:32:53.914 70000e7f8 Crunch: CGI Call: 
http://config.privoxy.org/favicon.ico
127.0.0.1 - - [16/Jun/2022:14:32:53 +0100] "GET 
http://config.privoxy.org/favicon.ico HTTP/1.1" 200 198
2022-06-16 14:32:55.600 70000e87b Request: www.privoxy.org:443/
2022-06-16 14:32:55.601 70000e87b Info: Request from 127.0.0.1 marked 
for blocking. limit-connect{80} doesn't allow CONNECT requests to 
www.privoxy.org:443
2022-06-16 14:32:55.602 70000e87b Crunch: Blocked: www.privoxy.org:443
127.0.0.1 - - [16/Jun/2022:14:32:55 +0100] "CONNECT www.privoxy.org:443 
HTTP/1.1" 403 9145

```

Thx for your help,
Raf

Le 12/06/2022 à 15:35, Lee a écrit :
> On 6/12/22, privoxy at use.startmail.com <privoxy at use.startmail.com> wrote:
>> Hi Lee,
>>
>> thx for your time. Following the manual, I have enabled all debug
>> options (including 32768) but 64.
>>
>> With the following infos: Privoxy 3.0.33, MacOS Mojave 10.14.6, Safari
>> 14.1.2., privoxy.org (currently blocked), package downloaded from
>> privoxy.org, not chained to any other proxies (nor Tor), tested without
>> firewall (issue remains). However, I use a VPN (Mullvad).
>>
>> I have attached the logfile.
> interesting...
> $ grep -i 'get http:' logfile.log | grep -v ' Received: ' | grep -v ' scan: '
> 127.0.0.1 - - [12/Jun/2022:11:00:58 +0100] "GET
> http://ocsp.apple.com/ocsp-devid01/ME4wTKADAgEAMEUwQzBBMAkGBSsOAwIaBQAEFDOB0e%2FbaLCFIU0u76%2BMSmlkPCpsBBRXF%2B2iz9x8mKEQ4Py%2Bhy0s8uMXVAIIRUrBxOkNwKA%3D
> HTTP/1.1" 200 2491
> 127.0.0.1 - - [12/Jun/2022:11:01:04 +0100] "GET
> http://ocsp.apple.com/ocsp-devid01/ME4wTKADAgEAMEUwQzBBMAkGBSsOAwIaBQAEFDOB0e%2FbaLCFIU0u76%2BMSmlkPCpsBBRXF%2B2iz9x8mKEQ4Py%2Bhy0s8uMXVAIIa0XNzWCoNN0%3D
> HTTP/1.1" 200 2491
> 127.0.0.1 - - [12/Jun/2022:11:01:05 +0100] "GET
> http://ocsp.apple.com/ocsp-devid01/ME4wTKADAgEAMEUwQzBBMAkGBSsOAwIaBQAEFDOB0e%2FbaLCFIU0u76%2BMSmlkPCpsBBRXF%2B2iz9x8mKEQ4Py%2Bhy0s8uMXVAIIa0XNzWCoNN0%3D
> HTTP/1.1" 200 2491
> 127.0.0.1 - - [12/Jun/2022:11:01:06 +0100] "GET
> http://config.privoxy.org/ HTTP/1.1" 200 3412
> 127.0.0.1 - - [12/Jun/2022:11:01:06 +0100] "GET
> http://config.privoxy.org/apple-touch-icon-precomposed.png HTTP/1.1"
> 404 4261
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/apple-touch-icon.png HTTP/1.1" 404 4261
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/favicon.ico HTTP/1.1" 200 198
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/ HTTP/1.1" 200 3412
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/apple-touch-icon-precomposed.png HTTP/1.1"
> 404 4261
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/apple-touch-icon.png HTTP/1.1" 404 4261
> 127.0.0.1 - - [12/Jun/2022:11:01:07 +0100] "GET
> http://config.privoxy.org/favicon.ico HTTP/1.1" 200 198
> 127.0.0.1 - - [12/Jun/2022:11:01:11 +0100] "GET http://privoxy.org/
> HTTP/1.1" 200 138
>
>
> The requests for http://config.privoxy.org/ and http://privoxy.org/
> work - they get a status 200 success
> The requests for
> http://config.privoxy.org/apple-touch-icon-precomposed.png and
> http://config.privoxy.org/apple-touch-icon.png HTTP/1.1 fail with a
> 404 not found
>
> So try this:
>
> Add this bit to your user.filter
> (it's supposed to be two lines; dunno what, if any, line wrap will happen)
>
> --------------- cut here ---------------------
> CLIENT-HEADER-FILTER: switch-apple-touch-icon return
> config.privoxy.org/favicon.ico if asked for
> config.privoxy.org/apple-touch-icon.png
>
> s@^GET\s*http://config.privoxy.org/apple-touch-icon(-precomposed)?\.png at GET
> http://config.privoxy.org/favicon.ico@i
>
> --------------- cut here ---------------------
>
> And then this bit to one of your action files
> (again, it's supposed to be two lines)
>
> --------------- cut here ---------------------
> { +client-header-filter{switch-apple-touch-icon} }
> config.privoxy.org/apple-touch-icon(-precomposed)?\.png
>
> --------------- cut here ---------------------
>
>
>>>> For unknown reasons to me,
>>>> I don't have that issue on 3.0.24 still running on same OS Mojave, but
>>>> on another machine.
> What seems to be failing are the requests for apple-touch-icon*; you
> could try enabling
> debug     8 # show header parsing - helpful but verbose
> and see if the machine is requesting the apple-toucn-icons or no
>
> Lee
>
>
>
>> Thx for your help,
>>
>> Raf
>>
>> Le 09/06/2022 à 18:37, Lee a écrit :
>>> On 6/8/22,privoxy at use.startmail.com  <privoxy at use.startmail.com>  wrote:
>>>> Hi Lee,
>>>>
>>>> thanks for your prompt reply. I've been using Privoxy since 2014 with
>>>> version as low as 3.0.21. I have encountered that same issue
>>>> occasionally since, and until version 3.0.33. For unknown reasons to me,
>>>> I don't have that issue on 3.0.24 still running on same OS Mojave, but
>>>> on another machine.
>>>>
>>>> Here's the status page when I input `privoxy.org`.
>>> It looks like the last action is a '-block' so that doesn't explain
>>> what's happening.
>>>
>>> Can you create a log file with all the debug options enabled as described
>>> at
>>> https://www.privoxy.org/user-manual/contact.html#SUFFICIENT-INFORMATION
>>>
>>> Thanks
>>> Lee


More information about the Privoxy-users mailing list