[Privoxy-users] Getting User Details while applying filter

Fabian Keil fk at fabiankeil.de
Sat Nov 5 13:02:13 UTC 2016


Muhammad Usman <muhd.usman87 at gmail.com> wrote:

> I am new at setting up proxy server, till now I am able to setup Privoxy
> on openWRT device. I have configured the filter (mentioned below), till
> now what happens is that in each customer session, proxy injects URL of
> my JS file (hosted online). Now What I want to do is to call the JS file
> with some parameters like customer MAC or IP etc in order to uniquely
> identify the customer and presents ads accordingly. Any ideas on how can
> I fill the data-cusmac or data-cusIP in below filter dynamically? Thanks
> a lot

Privoxy isn't aware of MAC addresses but you can access the client's
ip address with the $origin variable. The client-ip-address tagger
in default.filter does that.

If your Privoxy build supports it, you could use an external filter
(written in any programming language you like) to get the MAC address
from the IP address in the environment variable PRIVOXY_ORIGIN.

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


More information about the Privoxy-users mailing list