New Inspiro AI Demo Generator — can't find the perfect demo? Describe your website and AI builds a custom one in about 2 minutes. Learn more →

Knowledge Base

Documentation

Theme Documentation



Plugin Documentation



Resources

Getting the Right Visitor IP Behind Cloudflare or a Proxy

This article refers to WPBruiser

WPBruiser uses the visitor’s IP address for the allow and block lists, brute-force detection, the country shown in Reports and, in WPBruiser Pro, country blocking and rate limits. When your site sits behind a CDN, a load balancer or a security proxy, every request reaches your server from the proxy’s address, and the real visitor address travels in an HTTP header. This article shows how to tell WPBruiser which header to trust.


Table of Contents

  1. Proxies recognised automatically
  2. Checking the address WPBruiser sees
  3. Registering a proxy header
  4. Removing a header

Proxies recognised automatically

WPBruiser recognises these services and reads their visitor-address header on its own: Cloudflare, Incapsula, Amazon CloudFront, AWS Elastic Load Balancing, Rackspace and Sucuri. If your site uses one of them, there’s usually nothing to do.


Checking the address WPBruiser sees

  1. Go to WPBruiser → Settings and scroll to Trusted Proxy Headers.
  2. The line under the table shows the IP address WPBruiser detects for you. Click What’sMyIP to compare it with your real public address.
Trusted Proxy Headers

If the two match, WPBruiser sees real visitor addresses and no action is needed. If WPBruiser shows your server’s or your proxy’s address instead, register the header your proxy uses, as below. Otherwise every visitor would appear to have the same address, and blocking that address would block everyone.


Registering a proxy header

  1. Open the Detected Proxy Header drop-down. It lists the address headers found in your current request, for example HTTP_X_FORWARDED_FOR or HTTP_X_REAL_IP. “No Proxy Header Detected” means the request carried none.
  2. Choose the header your proxy sets, then click Register Header.
  3. Check the detected address line again: it should now show your real IP.

Only register a header your proxy actually sets. Headers such as X-Forwarded-For can be faked by anyone when a site is not behind that proxy, which would let a bot pick any address it likes. If you’re not sure which header to use, ask your host or CDN, or start a topic on the support forum.


Removing a header

Registered headers are listed in the box with a Remove button next to each. Remove a header if you stop using the proxy that sets it.


What’s Next?

Last updated on October 17, 2026