[Privoxy-users] Text replacement doesn't work

Matteo Spigolon ns at fabbricapolitica.com
Thu Jan 27 13:31:55 UTC 2022


Verified in http://config.privoxy.org/show-status <http://config.privoxy.org/show-status>

#define	Enabled	
FEATURE_HTTPS_INSPECTION	Yes

In /etc/privoxy/config I made these changes:

- uncommented the "ca-directory /etc/privoxy/CA" row
- uncommented the "ca-cert-file cacert.crt” row
- uncommented the "ca-key-file cakey.pem” row
- uncommented the "certificate-directory /var/lib/privoxy/certs” row
- uncommented all the rows of the cipher lists
- generated caret.crt and cakey.pem and put them in /etc/privoxy/CA (command: openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.crt -days 3650)
- uncommented the "trusted-cas-file trusted_cas_file.pem”, downloaded the example file "https://curl.se/ca/cacert.pem <https://curl.se/ca/cacert.pem>” and renamed it.

In /etc/privoxy/user.action Inserted these rows:

+ignore-certificate-errors
{+https-inspection}
corriere.it
www.corriere.it
it.wikipedia.org
wikipedia.org
www.wikipedia.org <http://www.wikipedia.org/>

Then I restarted the privoxy service without errors In the log file.

When I visit one of that sites I got this error: error during the connection at it.wikipedia.org. PR_END_OF_FILE_ERROR

Which mistakes I made?

Thanks.

> Il giorno 27 gen 2022, alle ore 12:14, Fabian Keil <fk at fabiankeil.de> ha scritto:
> 
> Matteo Spigolon <ns at fabbricapolitica.com <mailto:ns at fabbricapolitica.com>> wrote on 2022-01-26 at 18:36:31:
> 
>> Hi,
>> 
>> - Server:
>> 
>> DietPi latest version
>> Privoxy 3.0.32
>> 
>> - Client MacBook Pro with macOS Monterey 12.1
>> - Browser tested: latest version of Chrome, Firefox and Safari
>> 
>> Addes in user.filter:
>> 
>> FILTER: berlusconi Replace all "berlusconi" with "berlusca"
>> s/berlusconi/berlusca/ig
>> 
>> Added in user.action:
>> 
>> { +filter{berlusconi} }
>> /
>> 
>> From the log:
>> 
>> 2022-01-26 17:42:52.337 7f43d5bf61c0 Re-Filter: Reading in filter
>> "berlusconi" ("Replace all "berlusconi" with
>> "berluscaz"") 2022-01-26 17:42:52.337 7f43d5bf61c0 Re-Filter:
>> Adding re_filter job 's/berlusconi/berluscaz/ig' to filter berlusconi
>> succeeded.
>> 
>> If I visit any site, the word ‘Berlusconi’ isn’t replaced with
>> ‘Berlusca’ in headline, sub headline and inside the article.
>> 
>> For example in:
>> 
>> 1. corriere.it <http://corriere.it/> <http://corriere.it/ <http://corriere.it/>>
>> 2. Ilfattoquotidiano.it <http://ilfattoquotidiano.it/>
>> 
>> I tried with other words, same problem in any site.
>> 
>> Someone can help me with this configuration?
> 
> Both example URLs redirect to https when using http.
> You'll therefore need to enable https inspection to filter them:
> <https://www.privoxy.org/faq/misc.html#SSL <https://www.privoxy.org/faq/misc.html#SSL>>
> <https://www.privoxy.org/user-manual/config.html#HTTPS-INSPECTION-DIRECTIVES <https://www.privoxy.org/user-manual/config.html#HTTPS-INSPECTION-DIRECTIVES>>
> <https://www.privoxy.org/user-manual/actions-file.html#HTTPS-INSPECTION <https://www.privoxy.org/user-manual/actions-file.html#HTTPS-INSPECTION>>
> 
> Fabian



More information about the Privoxy-users mailing list