cloudflare

2 posts

How to Get the Real IP Address When All Traffic Comes from CloudFlare

cloudsRecently we had an odd thing happen, all inbound WordPress logins appeared to be coming from the same IP address. Because a large percentage of our WordPress login attempts are from botnet zombies this caused the site security system to mark legitimate login attempts as bad.

Having installed the CloudFlare WordPress plugin was supposed to feed in the true IP address of each visitor but that seems to only work for comments and not for everything else. Here is one line of code that will get the original IP address of visitors coming through CloudFlare. Continue reading

How to Enable CloudFlare for Sub-Domains and Non-WWW Domains

cloudsWhen enabling CloudFlare through our hosting provider’s (Media Temple) built in integration a strange thing happened. The integration looked great and appeared to be setup correctly but we were only seeing a small trickle of pageviews reported by CloudFlare, one or two per day when we regularly get many thousands. Here is how to properly enable CloudFlare to service a website through Media Temple that uses a subdomain or does not use WWW to prefix the URL. Continue reading