• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Download Monitor & Manager Plugin

Simple Download Monitor & Manager for WordPress

  • Home
  • Documentation
  • Addons/Extensions
  • Login
    • Sign In
    • Edit Profile
    • My Downloads
  • Support
    • Tutorials
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
  • Contact Us
You are here: Home / Topics / logged IP address is of server, not client

[Support request] logged IP address is of server, not client

· ·

WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › logged IP address is of server, not client

  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by rdzman.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 30, 2019 at 8:29 pm #1090
    rdzman
    Participant

    I’m shopping around for a download manager/monitor plugin and in testing Simple Download Monitor, it appears that the IP address being logged is that of my server, not of the client doing the downloading. I’ve noticed this with several other (but not all) plugins I’ve tested. E.g. https://wordpress.org/plugins/delightful-downloads/ logs the server IP, just like Simple Download Monitor, but https://wordpress.org/plugins/download-monitor/ seems to be able to capture the client IP just fine.

    Any ideas why this is happening?

    May 1, 2019 at 4:20 am #1093
    admin
    Keymaster

    Are you using cloudflare on this site? What kind of hosting are you using?

    May 1, 2019 at 8:39 pm #1097
    rdzman
    Participant

    This is a HostGator Shared / Hatchling account. I’m not familiar with CloudFlare, but I’m pretty sure I’m not using it. It’s a pretty vanilla HostGator WordPress setup.

    May 2, 2019 at 5:24 pm #1098
    rdzman
    Participant

    A little poking around in the code in sdm_get_ip_address() reveals that on my site it’s picking up the IP address from HTTP_X_FORWARDED_FOR, which contains the IP address of the server, rather than REMOTE_ADDR, which contains the correct IP address of the client.

    I noticed that Download Monitor includes an explicit option to “Allow Proxy IP Override” with the help text “If enabled, Download Monitor will use the X_FORWARDED_FOR HTTP header set by proxies as the IP address. Note that anyone can set this header, making it less secure.”

    Any chance you could make this optional in Simple Download Monitor as well? Unfortunately, without something like that, SDM isn’t an option for me.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Primary Sidebar

Featured Addons

  • Squeeze Form Addon
  • Hidden Downloads Addon
  • Amazon S3 Integration

Support Links

  • Support Forum

Search

Featured Plugin

WP Express Checkout Plugin

Start managing and tracking your file downloads with the simple download monitor plugin. Download Now

Copyright © 2025 | Simple Download Monitor | A member of the Tips and Tricks HQ family.