Skip to content

How to configure Patchstack to work with Cloudflare?

The following steps should only be taken if your site is properly configured behind a Cloudflare proxy. On misconfigured sites, this could allow for IP address spoofing to exist which could potentially lead to a DoS attack

In order for Patchstack to work with Cloudflare, we recommend that you configure the IP address header override option.

For that:

  1. Go to Patchstack App > Sites > yourdomain.com > Protection > Additional settings
  2. To the IP Address Header Override input, type HTTP_CF_CONNECTING_IP
  3. Save the settings

This will tell Patchstack to grab the real visitors’ IP addresses.