IP Lookup is Pulling CDN's X-Forwarded-For

Hi Discourse Team!

Am I correct to assume that IP Lookup gets the last IP from the X-Forwarded-For header? Cloudfront seems to be attaching their IP at the end.

How would we modify nginx to remove the last IP in the X-Forwarded-For header? We were hoping to get the client IP to prevent spammers.

Could anyone please provide help / guidance?


Just wanted to check if anyone else has a workaround for something like this?

Hi, did you check this?

Have a look at Running other websites on the same machine as Discourse