Greetings Cloudflare Community,
I am trying to use htaccess to block all traffic except that routed through CloudFlare. I found instructions showing …
deny from all
allow from 126.96.36.199/22
(and so on - allow from all CF IPs)
However, my server is configured to see the visitor’s IP, not the CF IP, so that my visitor analytics make sense. But, as a side effect, all visitors are blocked by my changes to htaccess.
Is there a way to both track visits by visitor IP and also allow only access to CloudFlare-routed traffic? I’ve googled my fingers blue and cannot find a solution. Thanks in advance for your knowledgeable and kind advice.