NOTE: I know this way CloudFlare and logging visitor IP addresses via in PHP I want another solution, another operation to check download without user IP This Question not duplicate
I have a website that allows users to download Files. I have a function that uses the user's IP address to check if the user downloads from my website, or gets direct download bypassing my website.
My problem comes when I protect my website with Cloudflare. The problem is that Cloudflare changes the user's IP address and the check process returns fail all time.
I am working on a main server and sub-servers
Ex:
site.com
server1.site.com
server2.site.com
IP's differ between the main server and sub-server, Even with the use of cloud flare settings
Are there any ways to solve this problem ? Is there another operation to check download without user IP address? Thanks.