access_restriction.prefer_x_forwarded_for

Background

Is used to determine if the last IP address in the X-Forwarded-For header should be used as the IP address when checking access restrictions. If the X-Forwarded-For header is empty, the connecting IP address will be used.

Setting the key

Set this configuration key in the results page (preferred) or search package configuration.

Use the configuration key editor to add or edit the access_restriction.prefer_x_forwarded_for key, and set the value. This can be set to any valid Boolean value.

Default value

access_restriction.prefer_x_forwarded_for=false

Examples

If you have all requests going via a reverse proxy last IP address in the X-Forwarded-For header that Funnelback will see, will be the IP address that made the connection to the reverse proxy. In this case you would want to use the last IP address in the X-Forwarded-For header.

access_restriction.prefer_x_forwarded_for=true