Name

forwarded_for

Synopsis

Squid appends an item to the X-Forwarded-For header in requests sent to origin servers and neighbors. When this directive is enabled, Squid places the client’s IP address there. When it is disabled, Squid prints the word unknown instead. Thus, disabling forwarded_for increases your user’s privacy.

Syntax

forwarded_for on|off

Default

forwarded_for on

Example

forwarded_for off

Get Squid: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.