darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Login&password protection #148

Closed jbenicky closed 8 years ago

jbenicky commented 8 years ago

Hi, First of all, thank you for such a great software! Would it be possible to add login and password protection, to generated HTML?

darold commented 8 years ago

You just have to add a .htaccess file in the top directory to protect the reports.

jbenicky commented 8 years ago

But when it will be part of the application, it could be possible to restrict some users to particular part. Not all users should see everything.

darold commented 8 years ago

I agree but the main problem is that SquidAnalyzer only produce static HTML reports, this is not a dynamic CGI that would allow us to change the behavior following the context. By now you can use several filters to make different reports in different output directories following who have to see what. Filters can be used through excluded/included configuration files. This is not optimum at all because you have to parse multiple time your log file, but this all we have.

This is not what I want to reply to you, I would prefer to tell you to use a new release with full dynamic reports with internal Squid cache statistics, but unfortunately I miss lot of spare time for doing that. At this time filter and multiple dedicated reports are the only thing I can respond to you. I'm really sorry, I have started a development branch in 2010 by rewriting squid log parser in C and create a CGI to build dynamics reports, but I never find enough time to achieve something interesting to publish. This is the problem when you are not at full time dedicated to a task. Sorry again, that's my shame, I would love to give you the best Squid Report tool ever made with tons of features but I can't find time to work on it. Actually we have to be satisfied to see that branch 6.x is still maintained and improved.

jbenicky commented 8 years ago

Than you for your reply. So I will use different output directories. And hopefully you will release also dynamic version one day. Keep doing really perfect work.