tobychui / zoraxy

A general purpose HTTP reverse proxy and forwarding tool. Now written in Go!
https://zoraxy.arozos.com
GNU Affero General Public License v3.0
2.27k stars 129 forks source link

[ENHANCEMENTS] Statistic how often each proxy host/site has been requested #201

Open lluni opened 1 month ago

lluni commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, the statistical analysis shows the top 100 referring sites. It would also be interesting to see not only from where but also what was accessed, i.e., show how often each proxy host/site has been requested. I feel like that including the exact paths to the requested resources would be overkill (because then, style sheets and similar files would always be at the top of the ranking), so just a per-proxy host statistic how often each one has been requested should be enough.

Describe the solution you'd like An additional statistic which shows how often each proxy host/site has been requested.

Describe alternatives you've considered N/A

Additional context N/A

tobychui commented 1 month ago

Wait, isn't Referring site already contains the proxy hosts name within the URL? Or I misunderstood what you mean by "not include the exact path" while having a "per proxy host statistic"?

lluni commented 1 month ago

I thought something like this as an additional statistic:

Request Targets

Proxy Host       | Requests
---------------------------
sub1.example.com | 1234
sub3.example.com | 123
sub2.example.com | 12

So here, the exact path (e.g., https://sub1.example.com/assets/example.css) is omitted and only the (sub-)domain (sub1.example.com) is recorded.

This statistic would not readout the referer header of each request, but instead just looks at what the requested host of each request is, so one can analyze how much traffic each host has.