Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Question about the hit counter

    Is there a way to prevent the hit counter from registering hits from my computer?

  2. #2
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Question about the hit counter

    I thought of an IP ban but that would not be correct.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Question about the hit counter

    You could wrap the contents of the /includes/counter.php file inside an IF statement such as this one:
    Code:
    if (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR']) {
     
      ...
    
    }
    and then put your own IP address in the Down For Maintenance list of allowed IP Addresses.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Question about the hit counter

    Very clever, that should work. Gracias.

 

 

Similar Threads

  1. Why so many hits on the hit counter?
    By Sir Robert in forum General Questions
    Replies: 0
    Last Post: 9 Aug 2014, 07:34 PM
  2. What does the Hit Counter count?
    By 1speedbump in forum General Questions
    Replies: 5
    Last Post: 23 Jul 2013, 11:47 PM
  3. hit counter question
    By devinej1 in forum General Questions
    Replies: 2
    Last Post: 20 Sep 2009, 12:52 AM
  4. Understanding the hit counter
    By dssprogrammer in forum General Questions
    Replies: 2
    Last Post: 15 Jul 2007, 09:40 AM
  5. Question about admin hit counter? Please Help
    By mboley370 in forum General Questions
    Replies: 3
    Last Post: 8 Jul 2007, 05:31 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