Title: Using Cloudflare User IP wrong
Last modified: August 30, 2016

---

# Using Cloudflare User IP wrong

 *  Resolved [iworldc](https://wordpress.org/support/users/iworldc/)
 * (@iworldc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/using-cloudflare-user-ip-wrong/)
 * Hi,
 * Our site uses Cloudflare and we have the Cloudflare plugin installed to restore
   the original user IP. In comments I see the original user IP indeed.
 * But Sucuri is reporting 127.0.0.1 for all user events.
 * Cloudflare plugin: Version 1.3.18
    Sucuri Security – Auditing, Malware Scanner
   and Hardening: Version 1.7.11
 * Any idea?
 * [https://wordpress.org/plugins/sucuri-scanner/](https://wordpress.org/plugins/sucuri-scanner/)

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

 *  Thread Starter [iworldc](https://wordpress.org/support/users/iworldc/)
 * (@iworldc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/using-cloudflare-user-ip-wrong/#post-6441595)
 * Just updated to the latest version 1.7.13 and the problem is still there.
 *  Thread Starter [iworldc](https://wordpress.org/support/users/iworldc/)
 * (@iworldc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/using-cloudflare-user-ip-wrong/#post-6441609)
 * WordFence is also installed on this WP installation and it gets the correct user
   IP. So I assume the Cloudflare plugin actually does restore the user IP address.
 * Can you please check why Sucuri plugin always returns IP 127.0.0.1?
 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/using-cloudflare-user-ip-wrong/#post-6441940)
 * Marking as resolved; this was fixed two versions ago with the addition of two
   new options to allow the administrators to configure which HTTP header is going
   to be used by the plugin to retrieve the real IP address of the visitors; go 
   to the general settings page and configure the “IP Address Discoverer” option,
   choose the HTTP header from the dropdown that works better for your website’s
   setup.

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

The topic ‘Using Cloudflare User IP wrong’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

## Tags

 * [IP](https://wordpress.org/support/topic-tag/ip/)

 * 3 replies
 * 2 participants
 * Last reply from: [yorman](https://wordpress.org/support/users/yorman/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/using-cloudflare-user-ip-wrong/#post-6441940)
 * Status: resolved