Retrieve a real ip of client or origin name

Hi Community
I have a free plan. I have rails application configured on Cloudflare.
I want to retrieve a real IP of the client or origin so I can allow only whitelisted users to a page URL.

I have tried CF-Connecting-IP but did not work for me.

Any other approach to achieve this.
Note: Read about True-Client-IP but it’s only for enterprise plan.

That is an excellent error description :wink:

That header DOES work and you need to evaluate it to get the right address.

This topic was automatically closed after 30 days. New replies are no longer allowed.