Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Lightsquid Export Data

    pfSense Packages
    2
    5
    6.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      AudiAddict
      last edited by

      I would like to display the top 25 websites from lightsquid on our intranet.

      This is ofcourse possible with lightsquid, but it also displays who visited the website and so on.

      Would it be possible to export this data and display only the websites, without the " who " feature?

      I could modify the ligthsquid code to not display the who link, but I would actually still like to use this feature when needed.

      Would it be possible to create a 2nd cgi or command (in the url?) to display only the top websites each month without any user data?

      1 Reply Last reply Reply Quote 0
      • D
        dvserg
        last edited by

        Interested question. I will explore this.

        SquidGuardDoc EN  RU Tutorial
        Localization ru_PFSense

        1 Reply Last reply Reply Quote 0
        • D
          dvserg
          last edited by

          Possible change Lightsquid template
          /usr/local/www/lightsquid/tpl/… < - select you active template subfolder
          Search topsites.html

          
                    ##SITENUM##
                    [##SITEURLWHO_B##](##SITEURLWHO_L##)
                    [##SITEURL_B##](##SITEURL_L##)
                    ##SITECONNECT##
                    ##SITEBYTES##
                    ##SITEPERCENT##%
          
          

          Remove```
          ##SITEURLWHO_B##

          SquidGuardDoc EN  RU Tutorial
          Localization ru_PFSense

          1 Reply Last reply Reply Quote 0
          • A
            AudiAddict
            last edited by

            Thanks this works perfectly, although people can still click on home to go to index.cgi and see who visits which sites.

            I could change all the templates to remove that, but then I would not be able to lookup the info myself..

            Is it possible to make a cronjob to copy the topsites every month to another server or maybe another directory so I can block the /lightsquid directory?

            I could even install a 2nd pfsense vmware or something, just to display the topsites thing? Then I could leave the who field, because the hrefs there wont' work since I block all pfsense lightsquid access.

            Also it seems that the topsites display All websites, would it be possible to display only 25 for example?

            1 Reply Last reply Reply Quote 0
            • D
              dvserg
              last edited by

              although people can still click on home to go to index.cgi and see who visits which sites.
              Fix this

              
                         [# ##MSG_HEADER##](index.cgi) 
                         [# Home](/) 
              
              

              As

              
                         <a># ##MSG_HEADER##</a> 
                         <a># Home</a> 
              
              

              would it be possible to display only 25 for example?
              Change /usr/local/etc/lightsquid/lightsquid.cfg

              
              #how many site show in TopSites report
              $topsiteslimit       = 25;
              
              

              Is it possible to make a cronjob to copy the topsites every month to another server or maybe another directory so I can block the /lightsquid directory?

              Report DB catalog is /var/lightsquid/report

              SquidGuardDoc EN  RU Tutorial
              Localization ru_PFSense

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.