Original ip of user in the flask/Python

Hi, I use python / flask and unfortunately I don’t know how to use this “tutorial” to get it done so that it finally shows the original data - not the cloudflare ip addresses.

Try to get the HTTP Request Header of each request: namely CF-Connecting-IP.

Refer to this documentation: https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers-

ok, what should i do exactly?

I’m not familiar with Python Flask, but I think this link may help you:

In this case, try replacing “your-header-name” to “cf-connecting-ip”, something like this: