[Privoxy-users] need help to setup privoxy intercept and rewrite url

Fabian Keil fk at fabiankeil.de
Fri Nov 30 11:32:17 UTC 2018


blairfancy BF <blairfancy at hotmail.com> wrote:

> i have an url like this:
> 
> GET /general.xml?ip_ppp=&ip_dhcp=192.168.25.40&mac=E45D5...
> 
> containing local IP 192.168.25.40 and i would like to replace local IP 
> by Wan IP
> 
> can any one have an idea to achieve that with privoxy?

You can use an action section like:

{+redirect{s@(&ip_dhcp=)192.168.25.40@$1w.x.y.z@}}
/general\.xml\?ip_ppp=&ip_dhcp=192.168.25.40&mac=E45D5

Replace w.x.y.z with the WAN IP.

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/20181130/85eb3b5c/attachment.bin>


More information about the Privoxy-users mailing list