> For the complete documentation index, see [llms.txt](https://docs.toomuchmedia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toomuchmedia.com/using-nats/one-off-articles/cloudflare.md).

# Cloudflare

## mod\_remoteip

Cloudflare has deprecated '**mod\_cloudflare**' and now recommends using '**mod\_remoteip**'.&#x20;

Please see their article: <https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/#mod_remoteip>

## mod\_cloudflare

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.&#x20;

The good news is that there is a solution, which is outlined in the following diagram:

<figure><img src="/files/M499BTQyULKMveyYqyta" alt=""><figcaption></figcaption></figure>

You can find out more in the [Restoring Original Visitor IPs](https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/#mod_remoteip) article provided by Cloudflare.
