PATCH: disable Via: and X-Forwarded-For: header sending

From: Martin Hamilton <martin@dont-contact.us>
Date: Fri, 25 Jun 1999 11:07:57 +0100

-----BEGIN PGP SIGNED MESSAGE-----

<URL:http://www.net.lut.ac.uk/~martin/squid-hacks/via-forwarded.diff>
is a patch against Squid 2.2 STABLE3 which adds the ability to block
sending of the Via: and X-Forwarded-For: headers by your cache. It's
configured using the anonymize_headers directive in squid.conf.

Via: is required by the HTTP 1.1 specification, and used by Squid for
loop detection, so you'd probably want to think carefully before
turning it off. I figured people ought to have the option, though :-)

X-Forwarded-For: could already be partially disabled using the
forwarded_for directive in squid.conf, but this simply causes the
client IP address to be replaced with the string "unknown". This
patch lets you tell Squid not to send the header at all, which might
be useful in (for example) a mesh of cooperating anonymising proxies.

Only tested under RedHat Linux version 6 so far, so caveat emptor!

Martin

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBN3NU+tZdpXZXTSjhAQGG4AP/TYGaofwmNiNdlL9tHpqs/JK+MSKtbLrw
lF3e7tdYWUwvKB6gORx5zXx80UtLmkPg8CfjqPg4uGSBG6uYF7vr1G54N9VCxQRJ
24A1Z5501eC6gvh1rRk3JHeMzorvypJIa40raJ0NLhAxqzKO9PS/otkWqgTPqxJv
4/ziyp9qGxo=
=qwZn
-----END PGP SIGNATURE-----
Received on Fri Jun 25 1999 - 04:07:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:46:59 MST