Resolve user original IP with cloudflare tunnel apache2

i setup cloudfared tunnel for my website and need to restore original vistor IP ,
I already had https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/ installed and setup using the modrewrite method and it worked when i was port forwarding and didnt had the cloudflared reverse proxy tunnel.

But now after setting up cloudflared tunnel it just shows my server IP as user vistor IP

how can i use RemoteIPHeader CF-Connecting-IP with cloudflare tunnel?

ok found out that the ip is being send via CF_CONNECTING_IP

how can i make a htaccess file to do a simple deny all, allow from ?

Had to add my host server ip to the trusted list and it shows the ip correclty now

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