header_access
This directive defines a set of access rules for filtering HTTP headers from both
requests and responses. You can use it to remove headers that may
violate your privacy, or that cause interoperation issues. For
example, this configuration removes Cookie headers sent to a well-known web
advertising company:
acl DC dstdomain .doubleclick.net header_access Cookie deny DC
The header-name field must be one of
the HTTP headers Squid knows about or one of the keywords Other or All. Squid currently knows the following
HTTP headers:
Unfortunately, you can’t refer to an unknown header
individually. The best you can do is use the keyword Other to refer to all unknown HTTP headers.
The keyword All refers to all
(known and unknown) HTTP headers.
Note that if you deny the Via
header, Squid can’t detect forwarding loops (see Section 10.2).