Re: need help to setup privoxy intercept and rewrite url

Fabian Keil <[email protected]>
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
blairfancy BF <[email protected]> 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

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

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAlwBH8EACgkQaRgikYui
NxwH8g/+JB0/YlTxdHDohvu/bouBn7D7vhLd8i/hBpRak2eZFaLfx1oI8aLpRm8T
0NkNg2RgiaQjxl7oZuVL8lXcSwduFkf0rMbr/mCyEA3ksxX1EntgXNrYziFHGPMb
BYfSTWWz0cYRgKJaeqZlNFaGD63j7DFtgWMPBTM8IH0yTn+/90pl1Mrwu9uskc+s
8f9nLWXEiFRs1WPunSvAuDcp0xg7Nv4aUyIW+83D7kgkSopBL8I0Bjpv+EnGbZwJ
q1z+K817wfLBm08n8acVr9PIiXd9+cwxa2wOhM5noRK15gyyyOQtorFe1IENXai9
hZ7cCJXvUOVZ/z3CP+cwVfLWVbexYv2dxe2BV38HJTVuxqiPasKWau7/cAhkIBbv
kXXrUwefyRx7f6/u8J0oU4c1Ol5mpyPHEqyKmxFuvzsQj+jbShaV6Kjcm9tayOD3
TrxwHjUye1khV/1u5s0V/EkiAx65XR1lwgL6a+DoPxXfY6CYaFMyEBvQzsHepEa2
gbGcDfSk7M4BgZA8NdJIAWlr3USDY0o3I1zYt4eefgE/7kcCRtsPzCaf00Pce2ne
gXLV/8p4Ms7nxbwavaa/4VMuq0Yvln7lP8JF60d4E3ljDV3pSSE6bClBGkX7Xq7k
csfpsjOl711knRRQTlvWJhir9YLCi53qmYVSY//XZZ471s8b3Gw=
=2kwO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.