Passing the client IPs through the Zero Trust Tunnel to the origin server

I am hosting a Drupal website behind a Zero Trust Tunnel, and I am wondering if there is a way to pass clients IP’s through the tunnel to the web server. Mainly so I can IP ban misbehaving bots or server regional content like only showing the EU cookie compliance popup to countries in the EU. However, all traffic to my web server is showing the local IP address of my Cloudflared server.
Any help on this matter would be greatly appreciated.

I believe the CF-Connecting-IP header should be available.


Thank you so much; this should do the trick. Also, in looking into CF-Connecting-IP, I found out there is a Drupal module being developed that will do this very thing, among others. However, it is still in development.

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