|
发表于 2017-7-1 07:51:18
|
显示全部楼层
https://support.cloudflare.com/h ... sitor-IP-with-Nginx3 p$ Z1 L$ b& k P5 C: g. B$ B
, X/ v# w+ H/ E, {- N, q9 A
However, Cloudflare follows industry standards and includes the visitor's IP address in the X-Forwarded-For header. We also add a CF-Connecting-IP header that may be used as well. Any of these two can be used to either restore the originating IP of your visitor for your web application, or to be included in your logs.5 G! W9 `9 I1 @; q- ]0 g
8 i$ x ~; W5 N& y5 t. |+ g1 \2 i9 H' K& c
8 N7 D' i) s4 b' |6 M) k, R& p7 E |
|