`X-Forwarded-For` is an HTTP header used to identify the originating IP address of a client connecting to a web server through an HTTP proxy or a load balancer. When a client makes a request through a proxy or load balancer, that proxy adds an X-Forwarded-For header containing the client’s real IP address. If there are multiple proxies (a request passes through several), each proxy adds the address from which it received the request to the header, comma-separated.
X-Forwarded-For: 2.21.213.225, 104.16.148.244, 184.25.37.3Nginx can override the header with the client's real IP address.
proxy_set_header X-Forwarded-For $remote_addr;Source: Reverse Proxy Misconfigurations/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.