- http_peer(+Request, -PeerIP:atom) is semidet
- True when PeerIP is the IP address of the connection peer. If the
connection is established via a proxy or CDN we try to find the
initiating peer. Currently supports:
Fastly-client-ip
X-real-ip
X-forwarded-for
- Direct connections
- bug
- - The
X-forwarded-for
header is problematic. According to
Wikipedia, the
original client is the first, while according to
AWS
it is the last.