We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10226
    • 412 Posts
    I installed SlimStat and I like it. Before I really get attached to it, is there something better?

    But my real question is...

    Is there a way to ignore hits from a given subnet?

    I want to exclude traffic from my lan in stats, I access the site heavily for in-house management.

    Thanks!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Open config.php and part way down you will find the lines

      /** Don’t log hits from these IP ranges */
      var $ignored_ips = array( “192.168.”, “10.”, “127.”);

      Then add your own ip address like

      /** Don’t log hits from these IP ranges */
      var $ignored_ips = array( “192.168.”, “10.”,
      “127.”,”xx.xx.xxx.xxx” );

      Then save and upload the file to your web.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 10226
        • 412 Posts
        Thanks... I feel so noobish around here!

        .. well that is what happens when you use 172.24.0.xxx

        These days are a bit more complex than writing text based RPG’s on a VIC-20!

        Any other worthy hacks anyone? (other than the ones in the config file!)

        *DER* laugh
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Google is your friend! That’s where I found this cool
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org