Why should I install mod_cloudflare?

When you sign on to Cloudflare the way your logs are displayed will change because Cloudflare acts as a proxy. This means that your visitors are routed through the Cloudflare network. This allows Cloudflare to stop attacks before they reach your network. It also allows Cloudflare to speed up page load time by more efficiently routing packets and, more importantly, caching static resources (images, javascript, css, etc.) on a very fast connection. However, as a result, the connecting IP will always come from the Cloudflare network.

Cloudflare reports the IP address of the visitor in an HTTP header it appends: CF-Connecting-IP, so there is some information on the original visitor. However in some instances where you have other programs that depend on the incoming IP address of the original visitor, there will be issues. The good news is that there is a solution which is outlined below.

See the below diagram for a more detailed explanation:



Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk