Title: Reverse proxy integration &#8211; Cloudflare &#8211; Visitor IP&#8217;s
Last modified: January 21, 2021

---

# Reverse proxy integration – Cloudflare – Visitor IP’s

 *  Resolved [PauluaP](https://wordpress.org/support/users/pauluap/)
 * (@pauluap)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reverse-proxy-integration-cloudflare-visitor-ips/)
 * Hi.
 * One of the features listed is: Reverse proxy integration via Nginx. Could you
   please elaborate what that is?
 * An old Cloudflare blog post states:
 * > The W3TC plugin now also will also ensure that your visitors’ IP addresses 
   > appear correctly in WordPress without your needing the CloudFlare WordPress
   > plugin or the mod_cloudflare Apache module.
 * Is W3TC still able to make it so a WordPress site can be proxied with Cloudflare,
   yet still serve up the visitors real IP (instead of Cloudflare IP’s) for added
   functionality via the website?
 * Normally it seems the “proxy protocol” would be needed with Cloudflare to do 
   this (but it’s only available in Cloudflare’s Enterprise Edition).
 * Another method seems to be Nginx restore real IP address with the ngx_http_realip_module…(
   [https://www.cyberciti.biz/faq/nginx-restore-real-ip-address-when-behind-a-reverse-proxy/](https://www.cyberciti.biz/faq/nginx-restore-real-ip-address-when-behind-a-reverse-proxy/))
   not sure if W3TC does something similar?
 * Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reverse-proxy-integration-cloudflare-visitor-ips/#post-13941970)
 * Hello [@pauluap](https://wordpress.org/support/users/pauluap/)
 * thank you for your question and I am happy to assist you with this.
    W3 Total
   Cache does not do anything with IPs. When Cloudflare is setup then the Cloudflare
   IPs will be shown as needed. Using Reverse Proxy is a different matter. You can
   try the suggestion in the provider article. With W3 Total Cache you can Enable
   reverse proxy caching via varnish. However, when using Cloudflare this may not
   be the best solution. Thanks!
 *  Thread Starter [PauluaP](https://wordpress.org/support/users/pauluap/)
 * (@pauluap)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reverse-proxy-integration-cloudflare-visitor-ips/#post-13943826)
 * Thanks for the reply, Marko.
 * Just trying to understand, as per this quote from Cloudflare’s older blog post:
 * > The W3TC plugin now also will also ensure that your visitors’ IP addresses 
   > appear correctly in WordPress without your needing the CloudFlare WordPress
   > plugin or the mod_cloudflare Apache module.
 * Does W3TC no longer have this ability?
 * Thanks.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/reverse-proxy-integration-cloudflare-visitor-ips/#post-13944075)
 * Hello [@pauluap](https://wordpress.org/support/users/pauluap/)
 * Thank you for your question. You don’t need mod_cludflare when using W3 Total
   Cache as W3TC ensures that original visitor addresses will appear in your server
   logs.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Reverse proxy integration – Cloudflare – Visitor IP’s’ is closed to new
replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/reverse-proxy-integration-cloudflare-visitor-ips/#post-13944075)
 * Status: resolved