I’m using node.js/express.js. When using req.ip or req.ips, it gives me the reverse proxy Glitch IP since I’m using a custom domain. I’m trying to get the IP of who ever visited my site.
I know /cdn-cgi/trace exists, but I honestly don’t want to fiddle about with that!
Here’s a method with express. It’s using a package for cloudflare and express. Install via npm. Using that code an package it adds a new paramater to the request accessible via:
Ah. Looks like fly.io or glitch must be messing with the IPs and not Cloudflare. Might be one for support@glitch.com. You could contact fly.io but I doubt they’d care