{
    "title": "Cloudflare, Sucuri and real visitor IPs",
    "seo_title": "WordPress Behind Cloudflare or Sucuri: Real Visitor IP",
    "h1": "Cloudflare, Sucuri and real visitor IPs",
    "description": "Behind Cloudflare or the Sucuri firewall, WordPress sees proxy IPs. WP Feint Pro uses the real, verified visitor IP to limit logins, ban bots and log.",
    "lead": "Behind Cloudflare or the Sucuri firewall, WP Feint Pro recovers visitors’ real IP address, without being fooled by a forged header, for login attempt limiting, bans and logs.",
    "language": "en",
    "locale": "en-US",
    "type": "page",
    "url": "https://www.wp-feint.com/features/cloudflare/",
    "canonical": "https://www.wp-feint.com/features/cloudflare/",
    "markdown": "https://www.wp-feint.com/features/cloudflare/index.md",
    "json": "https://www.wp-feint.com/features/cloudflare/index.json",
    "published": "2026-10-27T23:16:47+00:00",
    "modified": "2026-11-22T12:06:13+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "Cloudflare, Sucuri and real visitor IPs",
            "url": "https://www.wp-feint.com/features/cloudflare/",
            "markdown": "https://www.wp-feint.com/features/cloudflare/index.md",
            "json": "https://www.wp-feint.com/features/cloudflare/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "Cloudflare, Sucuri et adresse IP réelle",
            "url": "https://www.wp-feint.com/fr/fonctionnalites/cloudflare/",
            "markdown": "https://www.wp-feint.com/fr/fonctionnalites/cloudflare/index.md",
            "json": "https://www.wp-feint.com/fr/fonctionnalites/cloudflare/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "Cloudflare, Sucuri e IP real del visitante",
            "url": "https://www.wp-feint.com/es/funcionalidades/cloudflare/",
            "markdown": "https://www.wp-feint.com/es/funcionalidades/cloudflare/index.md",
            "json": "https://www.wp-feint.com/es/funcionalidades/cloudflare/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "Cloudflare, Sucuri und echte Besucher-IP",
            "url": "https://www.wp-feint.com/de/funktionen/cloudflare/",
            "markdown": "https://www.wp-feint.com/de/funktionen/cloudflare/index.md",
            "json": "https://www.wp-feint.com/de/funktionen/cloudflare/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "Cloudflare, Sucuri e IP reale dei visitatori",
            "url": "https://www.wp-feint.com/it/funzionalita/cloudflare/",
            "markdown": "https://www.wp-feint.com/it/funzionalita/cloudflare/index.md",
            "json": "https://www.wp-feint.com/it/funzionalita/cloudflare/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "Cloudflare, Sucuri e IP real dos visitantes",
            "url": "https://www.wp-feint.com/pt/recursos/cloudflare/",
            "markdown": "https://www.wp-feint.com/pt/recursos/cloudflare/index.md",
            "json": "https://www.wp-feint.com/pt/recursos/cloudflare/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "Cloudflare, Sucuri en het echte bezoekers-IP",
            "url": "https://www.wp-feint.com/nl/functies/cloudflare/",
            "markdown": "https://www.wp-feint.com/nl/functies/cloudflare/index.md",
            "json": "https://www.wp-feint.com/nl/functies/cloudflare/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "Cloudflare, Sucuri and real visitor IPs"
        },
        {
            "level": 2,
            "text": "The problem: behind Cloudflare or Sucuri, everyone has the same address"
        },
        {
            "level": 2,
            "text": "What WP Feint Pro does"
        },
        {
            "level": 2,
            "text": "What’s included Pro"
        },
        {
            "level": 2,
            "text": "How to set it up"
        },
        {
            "level": 2,
            "text": "Behind the Sucuri firewall",
            "id": "sucuri"
        },
        {
            "level": 2,
            "text": "Even better: at the server level"
        },
        {
            "level": 2,
            "text": "Limits and precautions"
        },
        {
            "level": 2,
            "text": "Frequently asked questions",
            "id": "faq"
        },
        {
            "level": 3,
            "text": "Related reading"
        },
        {
            "level": 2,
            "text": "Start free, upgrade to Pro when you’re ready"
        }
    ],
    "body": "## The problem: behind Cloudflare or Sucuri, everyone has the same address\n\nWhen your site goes through Cloudflare’s proxy (the orange cloud in the [DNS](https://www.wp-feint.com/glossary/dns/) settings), visitors no longer connect directly to your server: a Cloudflare server does it on their behalf. Without any setting, WordPress and your plugins therefore see the IP address of a handful of Cloudflare servers instead of the visitors’ own. Yet Cloudflare does pass on the real address, in the `CF-Connecting-IP` HTTP header. The Sucuri firewall works the same way, with the `X-Sucuri-ClientIP` header (see below).\n\n| Feature | Without proxy support | With WP Feint Pro |\n| --- | --- | --- |\n| [Login attempt limiting](https://www.wp-feint.com/features/login-attempt-limiting/) | Failures from many visitors add up on the same address: a bot can get legitimate visitors blocked. | Each visitor is counted separately. |\n| [Bot banning](https://www.wp-feint.com/features/bot-traps/) | Banning a proxy server’s address also hits innocent visitors. | The bot’s own address is banned. |\n| Logs (traps, [activity](https://www.wp-feint.com/features/administrator-activity-log/), new device alert) | Always the same proxy addresses, which tell you nothing. | The visitor’s real network (truncated address). |\n\n## What WP Feint Pro does\n\nPro reads the `CF-Connecting-IP` header, but **only when the connection really comes from an official Cloudflare address**, and only if the header contains a valid IP address and nothing else. The address the site sees is then replaced very early as WordPress loads: every WP Feint module benefits, and so does WordPress itself (the IP address saved with comments, for example).\n\nThis check is essential: anyone can send a `CF-Connecting-IP` header straight to your server. If it were trusted without checking where it comes from, an attacker could pose as any address, get around login attempt limiting or get someone else banned.\n\n## What’s included Pro\n\n- **Cloudflare’s official IP range lists** (IPv4 and IPv6), built into the plugin and **updated every week** from cloudflare.com. A downloaded list that is invalid or abnormally short is ignored: the previous one stays in use.\n- **Three modes**: Automatic (default), On and Off.\n- **Diagnostics** in the card: the connection address received by the server, your address as seen by the site, the `CF-Connecting-IP` header received, the number of ranges and the date they were last updated, and a “Cloudflare detected” badge.\n- **Warnings** if the header arrives from an address that isn’t Cloudflare’s, if it is invalid, if the On mode is chosen while the request doesn’t go through Cloudflare, or if the Off mode is chosen while it does.\n- An **Update the ranges now** button.\n\n| Mode | When to choose it |\n| --- | --- |\n| **Automatic** (recommended) | In almost every case. The header is used when the request really comes from Cloudflare and ignored otherwise: no risk if the site is not behind Cloudflare. |\n| **On** | The site is behind Cloudflare. Same safety check, with a warning in the card if a request doesn’t go through Cloudflare. |\n| **Off** | The web server already restores the real address (see below), or you prefer the header never to be read. |\n\n![WP Feint Pro “Proxy / CDN: real visitor address” card: connection address and address as seen by the site, then a Cloudflare part (Automatic mode, CF-Connecting-IP header absent, 15 IPv4 and 7 IPv6 ranges, Update the ranges now button) and a Sucuri firewall part (Automatic mode, X-Sucuri-ClientIP header absent, 5 built-in ranges)](https://www.wp-feint.com/media/2026/10/admin-cloudflare-1.webp)\n\n## How to set it up\n\n1. Go to **WP Feint → Protection** (the mask icon in the admin menu), “Proxy / [CDN](https://www.wp-feint.com/glossary/cdn/): real visitor address” card, Cloudflare part.\n2. Leave the mode on **Automatic**. If the site goes through Cloudflare, the “Cloudflare detected” badge appears and the “Your address as seen by the site” line shows your own address, not a Cloudflare server’s.\n3. If a warning appears, follow it: check that the proxy (orange cloud) is on in Cloudflare’s DNS settings, or, if another proxy sits in front of the site, restore the real address in the server configuration.\n4. Save the settings.\n\n## Behind the Sucuri firewall\n\nSucuri’s firewall (the paid service that filters traffic in the cloud, enabled by changing your DNS, not to be confused with the free Sucuri Security plugin) causes the same problem: your server sees the addresses of Sucuri’s servers, and the real address arrives in the `X-Sucuri-ClientIP` header. WP Feint Pro restores it with the same rule as for Cloudflare: the header is only accepted when the connection really comes from an official Sucuri firewall address range, and only if it contains a valid IP address and nothing else.\n\n- **Same card**: the “Sucuri firewall” part of the “Proxy / CDN” card shows the “Sucuri detected” badge, the `X-Sucuri-ClientIP` header received and the number of ranges in use.\n- **Same three modes**: Automatic (default, recommended), On and Off, with the same warnings as for Cloudflare.\n- **Editable address ranges**: Sucuri publishes no list to download. The ranges given in its documentation are built into the plugin; if Sucuri adds new ones, type the full list in the “Sucuri firewall ranges (optional)” field, one range per line: it then replaces the built-in list. Ranges that are too wide (wider than a /16 in IPv4 or a /24 in IPv6) are rejected.\n- **No Sucuri Security plugin needed**: the address is restored as soon as plugins load, earlier than the Sucuri plugin does it. Bans, traps, login attempt limiting and the activity log see the real visitor.\n\nOnly one proxy is taken into account per request: Cloudflare is checked first, then Sucuri. A chain of proxies (Cloudflare in front of the Sucuri firewall, an unusual setup) must be restored in the server configuration.\n\n## Even better: at the server level\n\nIf your host allows it, restore the real address directly in the web server: Apache’s `mod_remoteip` module with Cloudflare’s ranges, or the `set_real_ip_from` and `real_ip_header CF-Connecting-IP` directives in Nginx. Server logs and other applications benefit too. Then choose the **Off** mode in WP Feint.\n\nFor the Sucuri firewall, the principle is the same with the `X-Sucuri-ClientIP` header and Sucuri’s ranges (`mod_remoteip`, or `real_ip_header X-Sucuri-ClientIP` in Nginx), then the **Off** mode in the Sucuri part of the card. Sucuri also recommends blocking direct access to the origin server by only accepting its firewall’s addresses: otherwise an attacker who knows the server’s address can bypass the firewall.\n\n## Limits and precautions\n\n- Only the Cloudflare and Sucuri firewall headers are supported, one proxy at a time. Behind another proxy or CDN, a host’s load balancer or a chain of proxies, restore the address at the server level.\n- Sucuri’s ranges are not updated automatically, as Sucuri publishes no list: if the card reports a header coming from an unknown address, check its documentation.\n- If the weekly range update fails, the previous list, or failing that the built-in list, remains in use.\n- This feature gives the other modules the right address; it doesn’t replace Cloudflare’s firewall or its own security rules.\n\n## Frequently asked questions\n\n**What about behind the Sucuri firewall?**\n\nWP Feint Pro also restores the real address from the `X-Sucuri-ClientIP` header, only when the connection comes from the Sucuri firewall’s official address ranges. The setting is in the same “Proxy / CDN” card, in Automatic mode by default.\n\n**Do I need the Sucuri Security plugin for this?**\n\nNo. WP Feint Pro restores the address itself, earlier than the Sucuri plugin. The plugin remains useful for its own features (audit log, file integrity, SiteCheck): see [Sucuri and WP Feint](https://www.wp-feint.com/sucuri-and-wp-feint/).\n\n**And if the site is not behind any proxy?**\n\nIn Automatic mode, nothing changes: the `CF-Connecting-IP` and `X-Sucuri-ClientIP` headers are only used when the connection comes from Cloudflare or Sucuri, and ignored otherwise. Nobody can use them to fake an address.\n\n### Related reading\n\n- [Login attempt limiting](https://www.wp-feint.com/features/login-attempt-limiting/)\n- [Bot traps and banning](https://www.wp-feint.com/features/bot-traps/)\n- [Hosting and cache compatibility](https://www.wp-feint.com/features/hosting-and-cache-compatibility/)\n\n## Start free, upgrade to Pro when you’re ready\n\nThe free version already hides WordPress, moves the login page, blocks XML-RPC and counts bots. Pro locks down logins, renames file URLs and monitors your sites for you: known vulnerabilities, core integrity, activity log, email alerts and the update status of all your sites in your member area. From €59 per year excl. tax, far less than the cleanup offers whose prices we checked. [Compare the costs](https://www.wp-feint.com/pricing/#cout-piratage).\n\n[See Pro pricing](https://www.wp-feint.com/pricing/)\n\n[Download the free version](https://www.wp-feint.com/download/)",
    "format": "application/json"
}