Re: Text replacement doesn't work

Fabian Keil <[email protected]> Thu, 27 Jan 2022 12:14:20 +0100
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
Matteo Spigolon <[email protected]> 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 &quot;berlusconi&quot; with
> &quot;berluscaz&quot;") 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/>
> 2. 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/user-manual/config.html#HTTPS-INSPECTION-DIRECTIVES>
<https://www.privoxy.org/user-manual/actions-file.html#HTTPS-INSPECTION>

Fabian

_______________________________________________
Privoxy-users mailing list
[email protected]
https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmHyfowACgkQaRgikYui
NxyKaA/9GnclJnEviKkYIYx6NIl3xlzocd5+X9fIj88EVVAzuri3UOBmBPH058qh
EYKY2ldtFMjQPvrmhII29NjeHHoJGOUYlS/7nHJeMKEIS2V504wFACTPwahjh2be
da6AiPI+ov0TARWsU/Fl4hXqVrL3pMbhQnjELGdI+EOehyp57idGhzZmH3XcAyRR
8zGQtUrBNSgZGtMVTX0RIDCJxxujkOc94v06BD/h46jlcuuTi8cOBT5o7PEIUSsF
T2COMBznuvffw18aI6TiSQmKJ21lBsiZ2FUMjlVtLjj+tRRsxilj5yuJihk1Z3ju
ddCu5abypYLWXsGpQzcZqw1LJUbNDeiBPlyT4r0tUgCBwU6SHeC2Qbg7pbkT7TqY
iJxayU4amX4QqhdVW2dokt7ZXl/zlvjYgMgyhT4pO2t27GHql95KDuCdlY3OYikS
8vHk9Q0qPaQkGKBScK+N9R7/jqXChEK11J87RxjEH1EJdgS0mGyP6psAPexe6iaS
8CRC22IBO0UXIXVY9pUCrY6uxMgWwq5QyrQw9hfOi4uvbAHsxL6j8ObQzXARrv/A
1uxcLYstQjshTr3wco5ymwIioOc41U9F16gH2QvXF+CGTdDbFQNvEdpKtU7FI+Oi
bBPLWtBmBG913SigIfguUj859DwjqPlADVafeH50hrfaVLwXEVQ=
=cb3K
-----END PGP SIGNATURE-----