francodacosta / grav-plugin-page-stats

better page stats for Grav
MIT License
7 stars 4 forks source link

Request: filter for requests to ignore #23

Closed anders8 closed 2 years ago

anders8 commented 2 years ago

Would love to be able to ignore any requests for wlwmanifest.xml since the bots are searching every IP in existence for it. I'm sure in 6 months it'll be some other WP vulnerability.

I suppose a regex to add a list of terms to ignore in the display would be the fix there: still record it, just don't include it in stats/calcs.

👍👍

francodacosta commented 2 years ago

@anders8 I'm facing the same problem it;s wlwmanifest.xml and wp-login.php

I will look into that, should be straightforward as there is already something similar for ignoring ips

francodacosta commented 2 years ago

@anders8 can you try 2.2.0

should add the filter by url and a bunch of new featires and bug fixes

anders8 commented 2 years ago

Is the filtering happening on the recording (front end) or on the stats display(back end)? In other words, the junk I have in there already, does it stay in, even applying the new filters?

(unrelated, the new circle graphs are nice. 👍)

francodacosta commented 2 years ago

@anders8 glad you like the pie charts, you can switch back to the table charts in the config if you want to

Unfortunately the filtering happens at write time (so on the back end) so the junk will stay in

It is fairly easy to delete it manually if you want, all the data is in a single table