Title: IP Logging not working
Last modified: August 22, 2016

---

# IP Logging not working

 *  Resolved [runblip](https://wordpress.org/support/users/runblip/)
 * (@runblip)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ip-logging-not-working/)
 * For some reason the login tracking does not seem to accurately track IPs, all
   of the IPs and hostnames are the same?
 * [https://wordpress.org/plugins/sucuri-scanner/](https://wordpress.org/plugins/sucuri-scanner/)

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

 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ip-logging-not-working/#post-5669409)
 * The plugin uses a custom method named `get_remote_addr` to retrieve the IP address
   from the global server variables, two conditions are involved in the code, the
   first one checks if the site is being the [Sucuri CloudProxy WAF](http://cloudproxy.sucuri.net/)
   network, and the second condition fixes the loopback address to make it more 
   standard to the format used through the rest of the interface.
 * If the website **is not** protected by _“CloudProxy”_ then the plugin uses the
   address available in `_SERVER.REMOTE_ADDR`. In the other hand, if the website
   is behind _“CloudProxy”_ then the plugin takes the address from a custom HTTP
   header set by the firewall and goes through a list of eight other headers _(in
   other of importance)_ in case that the previous variable is not available.
 * You can check which HTTP header is being used to detect your IP address from 
   the _“Site Info”_ page, as well as the IP address of your connection. If you 
   see an inconsistency there then you must ask the support team of your hosting
   company which HTTP header should be used or which one has more priority, then
   you can come back to this ticket and I will continue the investigation in case
   that I need to change something in the code of the plugin to make it work on 
   your site.
 *  [yorman](https://wordpress.org/support/users/yorman/)
 * (@yorman)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/ip-logging-not-working/#post-5669612)
 * OP is unresponsive after two weeks, and this issue may probably be related with
   this other ticket about _“No support for reverse-proxy”_ [1]. I currently only
   support the reversion through our firewall, but will add support for other generic
   proxies in the next version of the plugin.
 * [1] [https://wordpress.org/support/topic/no-support-for-reverse-proxy](https://wordpress.org/support/topic/no-support-for-reverse-proxy)

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

The topic ‘IP Logging not working’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [yorman](https://wordpress.org/support/users/yorman/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/ip-logging-not-working/#post-5669612)
 * Status: resolved