Any way of getting a true users IP while using cloudflare and Nigix

Hello I’m using cloudflare and Nigix I’m just wondering how can I get someones true IP

1 Like

Does this help?

X-Forwarded-For (multiple values) or CF-Connecting-IP might be what you need.

well in the nigix config there is
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

fixed by removing
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
and adding
proxy_pass_request_headers on;

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.