[Privoxy-users] Forward-override Assistance

Fabian Keil fk at fabiankeil.de
Thu Apr 20 11:39:16 UTC 2017


Amit Dori <amitdo at checkpoint.com> wrote:

> Thanks for your help, I was able to make it work!

You're welcome.

> 2 follow-up questions:
> - I've added the tagger part in the default.action and not
> default.filter. I would love to know why it is better to use the filter
> for such case.

Looks like I may have to rephrase the comment.

default.filter contains the definition of the client-ip-address
tagger that the action example relies on.

Filter and action files use different syntax and adding the action
sections to a filter file would not work.

The files default.filter and default.action may get overwritten
when updating (this depends on the method to do the update)
so the recommendation is that users don't modify either file
and add their own ones instead.

> - Another question I have, is about dynamic actionfiles. I know that
> each actionfile gets parsed for each requests so I was able to change a
> file while the service is active and get different results (success!).

Small correction: Privoxy keeps a representation of the content of
the action files in memory and updates it when a file modification
has been detected. This is more efficient than parsing the files for
each request.

> My question is, would it be better to use symbolic linkage (and edit
> files located elsewhere, say /tmp, like the forum suggested) for these
> files and not overwrite them. 

While symbolic links work, symbolic links for default.filter
and default.action may still get lost when updating.

If you add your own action and filter files updates shouldn't
touch them so additionally using links for them shouldn't
be necessary. If you want to relocate some of your files for
other purposes you could use symbolic links for this but
absolute paths should work as well.

Either way, /tmp doesn't strike me as ideal file location.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-users/attachments/20170420/e9e6cb87/attachment.bin>


More information about the Privoxy-users mailing list