Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default New Account Email Shows MY server IP Address

    Hello,
    I have noticed that the email I receive of new account creations shows the IP address of my server. In the past, the IP address of the submitter was captured and displayed. I used that IP addresses captured to block spam registrations. Any idea why I'm not getting this true IP address of the spammer anymore, and what I can do to restore it?

    Thanks,

    Info at bottom of admin email notification of new account . . .

    Office Use Only:
    From: jLyAdfEFqUYoWR imFGduRC
    Email: bobholahan######################
    Login Name: jLyAdfEFqUYoWR imFGduRC
    Login Email: bobholahan######################
    Telephone: 6334181784
    IP Address: 67.20.86.87 - 67.20.86.87
    Host Address: 67-20-86-87.unifiedlayer.com
    Date and Time: Wed Dec 4 2019 14:17:23 UTC

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: New Account Email Shows MY server IP Address

    When you view your store's admin's Tools->Server/Version information, what PHP Version is being used and, when you scroll down that page a bit, what's the Server API?

    Is your store's content being served up by a CDN (like CloudFlare)?

  3. #3
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: New Account Email Shows MY server IP Address

    PHP is 5.6.40 (Zend: 2.6.0)

    Server API is CGI/FastCGI

  4. #4
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: New Account Email Shows MY server IP Address

    P.S. No, our site is not using a CDN.

  5. #5
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: New Account Email Shows MY server IP Address

    Hi Lat9,

    Does the info I provided give you any clue to what's going on?

    Thanks,

    Greg

  6. #6
    Join Date
    Jun 2015
    Location
    California
    Posts
    54
    Plugin Contributions
    0

    Default Re: New Account Email Shows MY server IP Address

    I had a similar problem a while back. I traced the issue to a change in how the server handles the HTTP_X_FORWARDED_FOR function. It was assigning my server's ip instead of resolving the client ip past proxies or whatever HTTP_X_FORWARDED_FOR is supposed to do. My host blamed the change on the upgrade to Apache 4.

    To fix I had to remove the HTTP_X_FORWARDED_FOR lines from ADMIN/includes/functions/general.php and includes/functions/functions_general.php


    here is a related thread that also might help:
    https://www.zen-cart.com/showthread....-users-IP-addr

    if you want I can copy my exact code changes here for you.

  7. #7
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: New Account Email Shows MY server IP Address

    Thanks LightBrown,

    I'm trying out those code mods now, will let you know how it works.

  8. #8
    Join Date
    Mar 2016
    Location
    Marietta GA
    Posts
    72
    Plugin Contributions
    0

    Default SOLVED - New Account Email Shows MY server IP Address

    LightBrown - problem solved!

    I used your code from the referenced thread as a guide to clear out lines referring to HTTP_X_FORWARDED from

    /includes/functions/functions_general.php
    and
    /{alias}admin/includes/functions/general.php

    Now - all references to IP addresses on my site and in admin emails are showing real IP addresses, NOT my server address.

    The bogus IP addresses were showing up in the admin -- Whose Online tool. All visitors including spiders were showing as my server's IP address, not their own. When I get abusive spiders, especially from overseas, that hammer my site, I block them via my .htaccess.

    Additionally, admin emails notifying of orders and registrations showed my server IP instead of the actual users address. Now, I'll know where they're really coming from, and I can block the danged spam registrations.

    Thanks very much for the help!

    best,

    Greg

 

 

Similar Threads

  1. create new account image no longer shows up
    By bangsters in forum General Questions
    Replies: 0
    Last Post: 29 Apr 2011, 05:12 PM
  2. email FROM: header shows address twice
    By andreasy in forum General Questions
    Replies: 13
    Last Post: 26 Aug 2010, 03:26 PM
  3. From email now shows our server details?
    By rubear in forum General Questions
    Replies: 4
    Last Post: 31 Jan 2010, 08:01 AM
  4. Who's Online now shows everyone with server ip address????
    By njsparks in forum Basic Configuration
    Replies: 1
    Last Post: 6 Feb 2009, 08:30 PM
  5. Help! Paypal invoice shows old email address
    By crimson090 in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Sep 2007, 05:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR