Apache Show Real IP Address when using CloudFlare

When using Apache web server behind cloudflare, apache logs show cloudflare IP address instead of real visitor IP address. To show actual visitor IP address, you can enable remoteip apache module. On Debian/Ubuntu server: On RHEL/CentOS/Fedora, it is Usually enabled by default; check with: Cloudflare publishes its IP ranges here: IPv4: https://www.cloudflare.com/ips-v4IPv6: https://www.cloudflare.com/ips-v6 Create file … Read more

Nginx CloudFlare restore real ip

When using Nginx Behind Cloudflare, logs and web applications show Cloudflare sever IP instead of visitor IP. To fix this, edit Inside “http” section, add You can get updated list of CloudFlare IPs from https://www.cloudflare.com/ips Restart Nginx with Example Nginx Config https://gist.github.com/serverok/fef5c76bf96f8e016bf64095da4a64dc Back to Nginx

CloudFlare Page Rules for WordPress

Here are CloudFlare page rules for WordPress web site. yourdomain/wp-admin/* Security Level = High Cache Level = Bypass Disable Apps Disable Performance yourdomain/wp-content/uploads/* Browser Cache TTL = a day Cache Level = Cache Everything Edge Cache TTL = a month Configuration Rules (http.request.uri wildcard “/wp-login.php*”) Security Level = I am Under Attack Security > WAF … Read more