Please add a configuration option to the proxy_ip_parser middleware with the ability to select trusted and untrusted headers. For example, if the X-Real-IP header can be trusted and the X-Forwarded-* headers cannot be trusted, I would like to be able to configure the proxy_ip_parser to ignore the X-Forwarded-* headers.
An ability to add a custom trusted header like CF-Connecting-IP would be nice too.
Plugin
HTTP Middleware (any)
I have an idea!
Please add a configuration option to the proxy_ip_parser middleware with the ability to select trusted and untrusted headers. For example, if the
X-Real-IP
header can be trusted and theX-Forwarded-*
headers cannot be trusted, I would like to be able to configure the proxy_ip_parser to ignore theX-Forwarded-*
headers.An ability to add a custom trusted header like
CF-Connecting-IP
would be nice too.