Getting original requester IP in logs

I am using DNS in AWS and routing traffic to my ALB on AWS. I have configured logs on ALB to be dumped in S3. Currently the issue is if I am using proxy then the IPs of cloudflare appear in the request IP. How do I get the original IP in the access logs of ALB?
2 Replies
Raghav Sharma
Raghav SharmaOP4mo ago
any idea how i can go about doing this?
Flask
Flask4mo ago
Cloudflare Docs
Restoring original visitor IPs | Cloudflare Support docs
When your website traffic is routed through the Cloudflare network ↗, we act as a reverse proxy. This allows Cloudflare to speed up page load time by routing packets more efficiently and caching static resources (images, JavaScript, CSS, etc.). As a result, when responding to requests and logging them, your origin server returns a Cloudflare IP ...
Want results from more Discord servers?
Add your server