##// END OF EJS Templates
auth: don't trust clients too much - only trust the *last* IP in the X-Forwarded-For header...
auth: don't trust clients too much - only trust the *last* IP in the X-Forwarded-For header The X-Forwarded-For header contains a list of IP addresses, where each proxy server appends the IP they see their request coming from. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For . Trusting the *first* IP in HTTP_X_FORWARDED_FOR would allow clients to claim any IP, which could be used to bypass IP restrictions configured in Kallithea. Instead, only trust the last proxy in the chain, and thus only use the *last* IP in HTTP_X_FORWARDED_FOR. (In setups where more than last IP should be trusted, the last proxy server in the chain must be configured rewrite the header accordingly.)
Mads Kiilerich -
r8678:f08fbf42 default
Show More
Name Size Modified Last Commit Author
/ docs
administrator_guide
api
dev
theme
usage
Makefile Loading ...
conf.py Loading ...
contributing.rst Loading ...
index.rst Loading ...
installation.rst Loading ...
installation_iis.rst Loading ...
installation_puppet.rst Loading ...
installation_win.rst Loading ...
installation_win_old.rst Loading ...
make.bat Loading ...
overview.rst Loading ...
readme.rst Loading ...
setup.rst Loading ...
upgrade.rst Loading ...