Title: IP Detection with Cloudflare&#8217;s new Automatic Platform Optimization
Last modified: October 5, 2020

---

# IP Detection with Cloudflare’s new Automatic Platform Optimization

 *  Resolved [vuster](https://wordpress.org/support/users/vuster/)
 * (@vuster)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/)
 * Cloudflare has a new feature for WordPress called Automatic Platform Optimization
   to improve speed, etc.
    [https://blog.cloudflare.com/automatic-platform-optimizations-starting-with-wordpress/](https://blog.cloudflare.com/automatic-platform-optimizations-starting-with-wordpress/)
 * Since enabling this feature, I notice that the all IPs detected by Wordfence 
   are the same from a Cloudflare server. I’ve verified that when I turn on Development
   Mode and bypass Cloudflare cache, Wordfence can detect IP correctly.
 * Are you experiencing the same? How can I have Wordfence detect IPs correctly 
   with APO enabled?
 * Thanks

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

 *  Thread Starter [vuster](https://wordpress.org/support/users/vuster/)
 * (@vuster)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13494578)
 * And yes I have “”CF-Connecting-IP” HTTP header” option selected for IP Detection
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13494653)
 * Hello [@vuster](https://wordpress.org/support/users/vuster/) and thanks for reaching
   out to us!
 * We contacted Cloudflare and they’re looking at fixing `CF-Connecting-IP`, since
   it isn’t showing the correct visitor IP.
 * We recommend turning off the new Cloudflare APO feature temporarily. You should
   be able to turn it on again after the issue is fixed, but we haven’t heard an
   estimate on when that will be yet.
 * I will update you when I get more information!
 * Thanks!
 *  Thread Starter [vuster](https://wordpress.org/support/users/vuster/)
 * (@vuster)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13494690)
 * Got it. Thank you.
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13498733)
 * Looks like Cloudflare is hoping to have this resolved by Wednesday according 
   to their support forum.
 * Thanks for your patience and support!
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13506044)
 * Looks like it has been resolved as of today!
 * Let me know if you run into any issues! [@vuster](https://wordpress.org/support/users/vuster/)
 * Thanks!

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

The topic ‘IP Detection with Cloudflare’s new Automatic Platform Optimization’ is
closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WFAdam](https://wordpress.org/support/users/wfadam/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/ip-detection-with-cloudflares-new-automatic-platform-optimization/#post-13506044)
 * Status: resolved