As the title says, I have a cronjob that access a local flask route every few minutes. I noticed that on the nginx access logs, this request comes from a different IP rather than the local IP of the server.
Is the fact that the DNS of my server now hosted on Cloudflare the reason why my local cronjobs seem to come from different IPs everytime? Im not sure if this was the case before moving it to cloudflare so would like to rule out this possibility.
If your DNS record is proxied , Cloudflare will make requests to your origin server from their IP addresses. Therefore, if your cronjob is accessing your proxied domain, the requests will appear to originate from another IP address. If you want to recover the real IP address of the client making requests, you should look at the CF-Connecting-IP header.
I hope this helps
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.